Commit Graph

37 Commits

Author SHA1 Message Date
Andrei Rebegea
6602788c5c Merged 5.2.N (5.2.2) to HEAD (5.2)
134714 mward: 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/HEAD/root@137353 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-06-14 16:58:41 +00:00
Andrei Rebegea
a3fcd7a5b3 Merged 5.2.N (5.2.2) to HEAD (5.2)
134045 cturlica: REPO-1684: We should not return properties that are empty
      - Empty (zero length) string values are considered to be null values, and will be represented the same as null values (i.e. by non-existence of the property).


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137334 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-06-14 16:56:13 +00:00
Andrei Rebegea
7b013ec1c5 Merged 5.2.N (5.2.2) to HEAD (5.2)
134040 rmunteanu: 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/HEAD/root@137333 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-06-14 16:56:02 +00:00
Andrei Rebegea
f7989073a7 Merged 5.2.N (5.2.2) to HEAD (5.2)
133997 mward: REPO-1660: REST API - update person should also accept "-me-"


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137331 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-06-14 16:55:47 +00:00
Andrei Rebegea
344d17ad43 Merged 5.2.N (5.2.2) to HEAD (5.2)
133932 mward: REPO-1747: speeds up TestPeople from around 5 mins to 1.
   The changes aren't pretty, but do improve the speed considerably. Creating networks is expensive and people are cheap, so I've changed the emphasis from creating fresh networks to creating people and caching networks.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137330 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-06-14 16:54:45 +00:00
Alan Davis
e5147104ad Merged 5.2.0 (5.2.0) to HEAD (5.2)
133883 rmunteanu: REPO-1746: Merge fixes for 5.2 GA issues to 5.2.0 branch
      Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
         133721 mward: 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/HEAD/root@134196 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-11 10:36:12 +00:00
Alan Davis
3a2f75aa3c Merged 5.2.0 (5.2.0) to HEAD (5.2)
133881 rmunteanu: REPO-1746: Merge fixes for 5.2 GA issues to 5.2.0 branch
      Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
         133703 mward: 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/HEAD/root@134194 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-11 10:35:53 +00:00
Alan Davis
ffe5edb13b Merged 5.2.0 (5.2.0) to HEAD (5.2)
133870 rmunteanu: REPO-1746: Merge fixes for 5.2 GA issues to 5.2.0 branch
      Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
         133310 mward: 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/HEAD/root@134193 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-11 10:35:44 +00:00
Alan Davis
b1c6752eff Merged 5.2.0 (5.2.0) to HEAD (5.2)
133869 rmunteanu: REPO-1746: Merge fixes for 5.2 GA issues to 5.2.0 branch
      Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
         133309 mward: 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/HEAD/root@134192 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-11 10:35:36 +00:00
Alan Davis
4a4ba28e80 Merged 5.2.0 (5.2.0) to HEAD (5.2)
133856 rmunteanu: REPO-1746: Merge fixes for 5.2 GA issues to 5.2.0 branch
      Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
         133307 jvonka: 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/HEAD/root@134189 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-11 10:35:09 +00:00
Alan Davis
2b55561d4a Merged 5.2.0 (5.2.0) to HEAD (5.2)
133849 rmunteanu: REPO-1746: Merge fixes for 5.2 GA issues to 5.2.0 branch
      Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
         133351 jvonka: 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/HEAD/root@134188 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-11 10:35:00 +00:00
Alan Davis
c65142425d Merged 5.2.0 (5.2.0) to HEAD (5.2)
133846 rmunteanu: REPO-1746: Merge fixes for 5.2 GA issues to 5.2.0 branch
      Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
         133293 jvonka: 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/HEAD/root@134185 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-11 10:34:34 +00:00
Alan Davis
75c6283fb0 Merged 5.2.0 (5.2.0) to HEAD (5.2)
133843 rmunteanu: REPO-1746: Merge fixes for 5.2 GA issues to 5.2.0 branch
      Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
         133423 jvonka: REPPO-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/HEAD/root@134182 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-11 10:34:03 +00:00
Alan Davis
e420b16bda Merged 5.2.0 (5.2.0) to HEAD (5.2)
133094 mward: REPO-1627: oldPassword/password validation improvement


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@133390 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-06 17:17:56 +00:00
Alan Davis
5fcffff150 Merged 5.2.0 (5.2.0) to HEAD (5.2)
132999 mward: Merged mward/5.2.n-repo1544-update-self (5.2.1) to 5.2.N (5.2.1)
      132960 mward: REPO-1544: reindent with spaces (review: CR-620)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@133376 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-06 17:04:57 +00:00
Alan Davis
709ffe2703 Merged 5.2.0 (5.2.0) to HEAD (5.2)
132997 mward: Merged mward/5.2.n-repo1544-update-self (5.2.1) to 5.2.N (5.2.1)
      132930 mward: REPO-1544: further tests (people can update themselves, except for 'enabled' flag)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@133374 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-06 17:04:39 +00:00
Alan Davis
8c1fd3d00d Merged 5.2.0 (5.2.0) to HEAD (5.2)
132996 mward: 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/HEAD/root@133373 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-06 17:04:29 +00:00
Alan Davis
622c86d00b Merged 5.2.0 (5.2.0) to HEAD (5.2)
132993 mward: 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/HEAD/root@133372 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-06 17:04:19 +00:00
Alan Davis
2812472ed1 Merged 5.2.0 (5.2.0) to HEAD (5.2)
132872 mward: 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/HEAD/root@133366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-06 17:01:46 +00:00
Alan Davis
bd89a1afb8 Merged 5.2.0 (5.2.0) to HEAD (5.2)
132871 mward: 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/HEAD/root@133365 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-06 17:01:36 +00:00
Alan Davis
5d6c9aa7b0 Merged 5.2.0 (5.2.0) to HEAD (5.2)
132727 rmunteanu: 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/HEAD/root@133360 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-06 16:59:27 +00:00
Alan Davis
12d7f0ff0c Merged 5.2.N (5.2.1) to HEAD (5.2)
132482 rmunteanu: 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/HEAD/root@132671 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-10 16:59:14 +00:00
Alan Davis
7cf3d8ed99 Merged 5.2.N (5.2.1) to HEAD (5.2)
132475 cturlica: 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/HEAD/root@132669 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-10 16:58:51 +00:00
Alan Davis
97195d1534 Merged 5.2.N (5.2.1) to HEAD (5.2)
132343 rmunteanu: 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/HEAD/root@132362 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 20:06:41 +00:00
Alan Davis
a6fa33a24a Merged 5.2.N (5.2.1) to HEAD (5.2)
132120 mward: REPO-892: removed PersonUpdate class.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132340 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 14:05:13 +00:00
Alan Davis
a77b7e3173 Merged 5.2.N (5.2.1) to HEAD (5.2)
132117 cturlica: REPO-1506: Update Person - implement
      - added implementation for update personService
      - added tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132338 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 14:04:53 +00:00
Alan Davis
0e5f80f4eb Merged 5.2.N (5.2.1) to HEAD (5.2)
132027 mward: 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/HEAD/root@132327 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 14:03:00 +00:00
Alan Davis
21356a4eaa Merged 5.2.N (5.2.1) to HEAD (5.2)
131939 mward: REPO-1503: allow setting of password


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132326 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 14:02:51 +00:00
Alan Davis
3d481e8df0 Merged 5.2.N (5.2.1) to HEAD (5.2)
131909 mward: REPO-892: allow creation of enabled/disabled users


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132319 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 14:01:42 +00:00
Alan Davis
a5e799aecf Merged 5.2.N (5.2.1) to HEAD (5.2)
131902 mward: REPO-892: correctly store and retrieve cm:persondescription as a cm:content blob.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132318 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 14:01:32 +00:00
Alan Davis
887d066424 Merged 5.2.N (5.2.1) to HEAD (5.2)
131886 mward: REPO-892: ensure presence of mandatory fields


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132312 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 14:00:29 +00:00
Alan Davis
d2322f56a2 Merged 5.2.N (5.2.1) to HEAD (5.2)
131862 mward: 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/HEAD/root@132308 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 13:59:46 +00:00
Alan Davis
373d976faa Merged 5.2.N (5.2.1) to HEAD (5.2)
131858 mward: 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/HEAD/root@132307 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 13:59:35 +00:00
Alan Davis
3e1e1edbaa Merged 5.2.N (5.2.1) to HEAD (5.2)
125788 rmunteanu: 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/HEAD/root@127810 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 17:08:06 +00:00
Alan Davis
19fcf2c411 Merged 5.2.N (5.2.1) to HEAD (5.2)
125783 rmunteanu: 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/HEAD/root@127809 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 16:45:04 +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