Matt Ward
6a0be6cd7a
REPO-1813: 500 Response Code when creating a person without id
...
Now returns 400. Also fixed to return 400 when user id starts with GROUP_ or ROLE_
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-23 11:39:01 +00:00
Raluca Munteanu
bad483f217
REPO-1752: Create person with long id returns 500
...
- Changed validation message.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134050 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-05 13:23:59 +00:00
Raluca Munteanu
d7177c4d34
REPO-1752, REPO-1753: Create person with an id that contains "/" does not return an error
...
- Added username validation on create person.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134040 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-04 11:59:25 +00:00
Matt Ward
9164399615
REPO-1660: REST API - update person should also accept "-me-"
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133997 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-22 09:28:25 +00:00
Matt Ward
65849b1f8d
REPO-1636: fixed bug when updating person with aspects/props.
...
See https://issues.alfresco.com/jira/browse/REPO-1636?focusedCommentId=495557&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-495557
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133721 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-15 11:51:07 +00:00
Matt Ward
f5a9b78ed6
Merged mward/5.2.n-repo1636-customonly (5.2.1) to 5.2.N (5.2.1)
...
133687 mward: REPO-1636 no longer require explicit list of cm:person properties to exclude.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133704 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-15 09:48:43 +00:00
Matt Ward
e7f48f90f8
Merged mward/5.2.n-repo1636-customonly (5.2.1) to 5.2.N (5.2.1)
...
133683 mward: REPO-1636 (initial commit): Properties from the "cm", "usr", "sys" namespaces should not be exposed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133703 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-15 09:48:31 +00:00
Matt Ward
cfed51f84b
REPO-1661: properties and aspects no longer appear in /comments listing.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133552 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-09 16:54:07 +00:00
Jan Vonka
dc5427d920
REPO-1579: V1 REST API - create person fix
...
- expect 403 instead of 409, if a non-admin tries to create a person that already exists
- REPO-892
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133423 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-07 11:19:20 +00:00
Jan Vonka
01406a1b04
REPO-1646: V1 REST API - cannot unset optional fields (eg. when updating person / site details ...) - minor fixes with tests (update person)
...
- ensure enabled & emailNotificationsEnabled cannot be null
- null/empty company object should unset all fields (fix for empty case)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133351 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-06 15:20:15 +00:00
Matt Ward
c80a7674ce
Merged mward/5.2.n-repo1636-contentinfo (5.2.1) to 5.2.N (5.2.1)
...
133306 mward: REPO-1636: Now filter the entire "usr" namespace, rather than just usr:enabled
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-01 11:29:19 +00:00
Matt Ward
2fc6bda87a
Merged mward/5.2.n-repo1636-contentinfo (5.2.1) to 5.2.N (5.2.1)
...
133294 mward: REPO-1636: Filter cm:preferenceValues and usr:enabled properties when getting people
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133309 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-01 11:29:11 +00:00
Jan Vonka
8288699b52
V1 REST API - update person (password)
...
- REPO-1627 - Update password for a person with empty string
- REPO-1643 - Missing 'oldPassword' field accompanies 403 status code, but should be 400
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133307 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-01 11:18:36 +00:00
Jan Vonka
78a7208ad7
REPO-1646: V1 REST API - cannot unset optional fields (eg. when updating person / site details ...)
...
- part 2 (Update Person)
- REPO-1268, REPO-893
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133293 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-30 13:33:55 +00:00
Matt Ward
6fb7ce78ab
REPO-1627: oldPassword/password validation improvement
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133094 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-24 16:58:55 +00:00
Matt Ward
4ff13314a2
Merged mward/5.2.n-repo1544-update-self (5.2.1) to 5.2.N (5.2.1)
...
132987 mward: REPO-1544: correcting silly typo in new error message (relates to review: CR-620)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133001 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 10:29:05 +00:00
Matt Ward
1f30e5b5f1
Merged mward/5.2.n-repo1544-update-self (5.2.1) to 5.2.N (5.2.1)
...
132966 mward: REPO-1544: replaced use of unprotected person service with runAsSystem (review: CR-620)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133000 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 10:28:56 +00:00
Matt Ward
02d9631a18
Merged mward/5.2.n-repo1544-update-self (5.2.1) to 5.2.N (5.2.1)
...
132959 mward: REPO-1544: added error message (review: CR-620)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132998 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 10:26:35 +00:00
Matt Ward
3c8c8f03ac
Merged mward/5.2.n-repo1544-update-self (5.2.1) to 5.2.N (5.2.1)
...
132914 mward: REPO-1544: allow people to update their own password
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132996 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 10:26:06 +00:00
Matt Ward
396e471807
Merged mward/5.2.n-optionalcustomprops (5.2.1) to 5.2.N (5.2.1)
...
132978 mward: REPO-1395: make aspectNames, properties optional 'includes' when listing people
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132993 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 10:18:58 +00:00
Matt Ward
8c41b61084
Merged mward/5.2.n-custpeopleprops (5.2.1) to 5.2.N (5.2.1)
...
132803 mward: REPO-1395: add further tests and tweak functionality.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132872 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-17 15:00:36 +00:00
Matt Ward
c14aedf7d1
Merged mward/5.2.n-custpeopleprops (5.2.1) to 5.2.N (5.2.1)
...
132754 mward: REPO-1395: add custom properties to people create/get/update.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132871 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-17 15:00:17 +00:00
Raluca Munteanu
62e90cd0a8
REPO-1530: Create Person - enabled flag should be optional
...
- Added default value true for enable on create person and fixed test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132727 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-14 09:13:08 +00:00
Raluca Munteanu
f39e851d7b
REPO-556, REPO-1534: List People - OrderBy not working with "id"
...
- fixed orderBy issue, now people list can be ordered by "id" key
- added more tests for list people endpoint
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132482 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-07 14:51:48 +00:00
Cristian Turlica
104fd25dcc
REPO-894: Disable Person
...
- updated so we receive an error when trying to disable an admin authority
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132475 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-07 13:42:55 +00:00
Matt Ward
ba44c5f4b2
REPO-1536: corrected 404 error message for get person by ID (/person/{id})
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132473 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-07 13:06:24 +00:00
Cristian Turlica
4941efdeda
REPO-1506: Update Person - implement
...
- restrict rest api update person password for no authorization
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132406 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-04 14:19:31 +00:00
Raluca Munteanu
bb0296b851
REPO-556: List People - Allow people to be retrieved via the /people collection
...
- added implementation for get people endpoint
- added tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132343 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 15:34:33 +00:00
Matt Ward
1d20c23a67
REPO-892: removed PersonUpdate class.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132120 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 11:42:08 +00:00
Cristian Turlica
e0005cebcf
REPO-1506: Update Person - implement
...
- added implementation for update personService
- added tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132117 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 10:17:58 +00:00
Matt Ward
1a8fe7785f
REPO-1503: password is now mandatory.
...
First check in at my new desk!
I've also removed the auto-generation of passwords (UUID) since this is no longer needed with a mandatory password field.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-01 15:02:25 +00:00
Matt Ward
247d2ad97a
REPO-1503: allow setting of password
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131939 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-01 12:29:29 +00:00
Matt Ward
a8d705bb8c
REPO-892: allow creation of enabled/disabled users
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131909 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-31 16:56:32 +00:00
Matt Ward
4d8673f058
REPO-892: correctly store and retrieve cm:persondescription as a cm:content blob.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131902 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-31 15:58:22 +00:00
Matt Ward
9fd17791ff
REPO-892: ensure presence of mandatory fields
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-31 11:12:19 +00:00
Matt Ward
96953c1bb7
Merged 131680:131794 from DEV/mward/5.2.n-createperson to 5.2.N
...
REPO-892: make sure not all fields need to be supplied during create.
REPO-892: throws error if fields exclusively belonging to Person (that are not part of PersonUpdate) are sent in request.
REPO-892: cleaned up PersonUpdateJSONSerializer a little, by removing unnecessary 'fullVisibility' switch.
REPO-892: improved test for optional fields; added test for too few fields.
REPO-892: added tests (and impl where needed) for -ve response codes as given in the open api spec for create person.
REPO-892: fixed broken test due to reuse of username.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131862 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-28 13:14:41 +00:00
Matt Ward
8328ca78ab
Merged 131464:131680 from DEV/mward/5.2.n_createperson to 5.2.n
...
Creating branch for REPO-892 (Create person REST API)
REPO-892: create person - initial commit, bare-bones implementation and test.
REPO-892: refactored test versions of Person and Company to reduce duplication.
REPO-892: further refactoring to reduce prod/test duplication.
REPO-892: add missing fields to the 'create person' operation.
REPO-892: introduced PersonUpdate class for create (and I'm assuming update) operations.
REPO-892: missing license header
REPO-892: very minor refactoring - extract field in tests.
REPO-892: make sure not all fields need to be supplied during create.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131858 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-28 12:21:31 +00:00
Jan Vonka
533e948222
REPO-1027: V1 REST API - fix error handling (add site member)
...
- fix error code (should be 400 not 500) & add -ve api tests
- ACE-5458
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130871 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-22 09:27:50 +00:00
Raluca Munteanu
27333f1d39
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
...
125606 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2)
125515 slanglois: MNT-16155 Update source headers - add new Copyrights for Java and JSP source files + automatic check in the build
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-04-26 13:45:01 +00:00
Raluca Munteanu
386a4aca06
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
...
125605 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2)
125498 slanglois: MNT-16155 Update source headers - remove svn:eol-style property on Java and JSP source files
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-04-26 13:03:25 +00:00
Raluca Munteanu
9a889c69ea
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
...
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2)
125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-04-26 12:48:49 +00:00
Jean-Pierre Huynh
f8fa061ba3
Merged 5.1-MC1 (5.1.0) to HEAD (5.1)
...
119558 gcornwell: Merged code coverage improvements to 5.1-MC1 (5.1.0)
r117774 gjames: RA-567: Increase /workflow/processes API code coverage
r117773 gjames: RA-567: /workflow/processes coverage, removed unused ActivitiTypeConverter
r116883 gjames: RA-531: reapplied change after merge, for MultiTServiceImpl test coverage
r116629 gjames: RA-568 Increase /workflow/process-definitions API code coverage
r116574 gjames: RA-569 Increase /workflow/tasks API code coverage
r116286 gjames: RA-567: Increase /workflow/processes API code coverage
r115853 gjames: RA-566: Increasing /people api coverage (description field)
r115811 gjames: RA-566: Increasing /people api coverage
r113007 gjames: Adding additional test coverage for DictionaryNamespaceComponent and DynamicNamespacePrefixResolver RA-521
r113006 gjames: Adding additional test coverage for DictionaryNamespaceComponent and DictionaryComponent RA-514
r112969 gjames: Adding additional test coverage for TemplateServiceImpl RA-530
r112960 gjames: Alternative test approach for ModuleServiceImpl RA-520
r112703 gjames: Adding additional test coverage for NodeLocatorService RA-522
r112702 gjames: Adding additional test coverage for JobLockServiceImpl RA-516
r112699 gjames: Adding additional test coverage for ModuleServiceImpl RA-520
r112508 gjames: Adding additional test coverage for RenditionServiceImpl RA-526
r112476 gjames: Adding additional test coverage for ContentServiceImpl RA-513
r112475 gjames: Adding additional test coverage for MimetypeMap RA-519
r112238 gjames: Adding additional test coverage for MimetypeMap RA-519
r112237 gjames: Adding additional test coverage for TaggingService RA-529
r112236 gjames: Adding additional test coverage for MultiTServiceImpl RA-531
r112206 gjames: Adding additional test coverage for ContentServiceImpl RA-513
r112167 gcornwell: RA-523: Increase NodeService code coverage (removed redundant code that was testing a version store we no longer use)
r112102 gjames: Reverted changes to PermissionServiceImpl for RA-524
r112048 gjames: Temporarily removed some PermissionServiceImpl code. I need to put it back.
r111620 gjames: Adding additional test coverage for PermissionService RA-524
r111619 gjames: Added some @Override to make Sonar happier
r111456 gjames: Adding additional test coverage for AuthenticationService RA-509
r111427 gjames: Adding additional test coverage for AttributeService RA-509
r111317 gjames: Adding additional test coverage for WorkflowService RA-533
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@119945 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-12-10 10:35:05 +00:00
Samuel Langlois
788d3c9c89
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
...
51903 to 54309
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-20 17:17:31 +00:00