Commit Graph

744 Commits

Author SHA1 Message Date
Jan Vonka
337d7a9c8c REPO-1713: V1 REST API - simplify exception handling for multi-part upload
- was: exceptions from behaviour beans are being returned as 500 during upload (as per RM extended use-case)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133603 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-13 11:11:56 +00:00
Cristian Turlica
fe3eec905c REPO-1302: Retrieve list of group members
- added group members api
   - fixed order by issue when using post processing ordering by id

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133574 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-12 14:37:27 +00:00
Cristian Turlica
81a720ebb0 REPO-1300: Retrieve list of groups
-  Fixed build failure

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133522 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-08 22:11:57 +00:00
Gethin James
d8c47d60e1 ACE-5622: Search api scope now uses "locations"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133518 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-08 15:49:24 +00:00
Cristian Turlica
ffdb176db2 REPO-1300: Retrieve list of groups
- added groups api

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133515 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-08 15:29:45 +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
Raluca Munteanu
bf47206dab REPO-1654, REPO-1655: Update one permission field returns 500
- Changed status code and message in case one of the required permission fields is missing.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133336 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-12-05 13:43:14 +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
7aaf5f6841 REPO-1646: V1 REST API - cannot unset optional fields (eg. when updating person / site details ...)
- fix test fallout (Person returns empty Company object by default - as per existing V1 getPerson API)
- TODO review the way we match expected results QueriesPeopleApiTest (vs other test patterns)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133297 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-30 15:52:13 +00:00
Jan Vonka
e3355b881b REPO-1646: V1 REST API - cannot unset optional fields (eg. when updating person / site details ...)
- fix test fallout (Person returns empty Company object by default - as per existing V1 getPerson API)
- TODO review the way we match expected results QueriesPeopleApiTest (vs other test patterns)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133296 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-30 15:51:00 +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
Jan Vonka
c6a643ae99 REPO-1646: V1 REST API - cannot unset optional fields (eg. when updating person / site details ...)
- part 1 (Update Site)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133290 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-30 12:03:30 +00:00
Jamal Kaabi-Mofrad
f15ab178da Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
133185 jkaabimofrad: APPSREPO-61: As part of code review, renamed the quick share expiry date period flag.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133222 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-28 16:54:32 +00:00
Jamal Kaabi-Mofrad
3930d7051a Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
133163 jkaabimofrad: APPSREPO-54: Fixed build failure.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133221 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-28 16:54:22 +00:00
Jamal Kaabi-Mofrad
50f50eeecf Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
133145 jkaabimofrad: APPSREPO-54: Added support to the quick-share V1 API to allow setting an optional expiry date when creating a shared link.
              - Also, fixed the overloaded shareContent method which was missed during code clean-up.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133219 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-28 16:54:07 +00:00
Jan Vonka
3f6c638929 REPO-1635: V1 REST API - minor fix for error code (update node/people details)
- invalid data type conversion should return 400 instead of 500
- REPO-1635, REPO-1641

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133168 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-28 09:37:35 +00:00
Raluca Munteanu
a85512572b REPO-557: Retrieve Permissions For Node
-  Renamed field according to REST API code conventions

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133137 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-25 15:45:10 +00:00
Raluca Munteanu
c9753d62cd REPO-557: Retrieve Permissions For Node
-  Fixed build failure

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133112 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-25 10:38:00 +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
Raluca Munteanu
ded07a19fa REPO-557: Retrieve Permissions For Node
-  Added tests and minor changes

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133082 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-24 14:28:13 +00:00
Raluca Munteanu
87ec45860b REPO-558, REPO-557: Update Permissions For Node
- Fixed build failure, related to REPO-1538

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133030 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 16:15:50 +00:00
Raluca Munteanu
5b10029042 REPO-558, REPO-557: Update Permissions For Node
- Merged changes from branch 5.2.N-NODEPERMS-REST-API
   - Added tests for update node permissions

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133021 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 11:55:08 +00:00
Ramona Neamtu
6fb6732eb2 SHA-1930 : Unable to delete folder, when the folder contains shortcut link to the same folder
- Check link for PENDING_DELETE aspect before trying to delete it
   - Added unit test for case

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133020 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 11:51:11 +00:00
Matt Ward
fb8ea2a971 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/BRANCHES/DEV/5.2.N/root@132999 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 10:28:43 +00:00
Matt Ward
af14559c74 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/BRANCHES/DEV/5.2.N/root@132997 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-22 10:26:25 +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
7e89c53fe8 REPO-1457: The create site REST API implementation has appropriate extension points
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132658 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-10 16:04:34 +00:00
Raluca Munteanu
9d2773c492 REPO-1543: Refactor tests for list site filtering
- Clear the authentication context on tear down

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132620 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-10 11:46:30 +00:00
Ramona Neamtu
5fda93abb9 SHA-1892 : Error appears when Consumer or Contributor is trying to create a link on a document
- After creating the link for a node, add the marker aspect (LINKED) to the original node as System user. 
   - Added test for case 
   - Added a new test for DocumentLinkServiceImplTest for updated fucntionality

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132612 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-10 09:39:15 +00:00
Raluca Munteanu
a41343b0a8 REPO-1543: Refactor tests for list site filtering
- Fixed build failure by clearing the authentication context on a previous test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132608 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-10 07:36:33 +00:00
Jamal Kaabi-Mofrad
bb4a6cbbae Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
132578 jkaabimofrad: APPSREPO-59: Modified the model validator to ignore the TYPE_NAMESPACE when there is a DIFF_DELETED type.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132589 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-09 10:45:19 +00:00
Raluca Munteanu
1eba269df5 REPO-1543: Refactor tests for list site filtering
- site are now created with a default site preset
   - refactored tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132587 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-09 09:20:07 +00:00
Ramona Neamtu
280bcff174 SHA-1875 : Link cannot be deleted if the original node is locked
- Removed aspect Lockable when the links are deleted 
   - In case of the user try to create links for locked or checked out nodes, throw an error 
   - Disabled audit when add marker aspect Linked 
   - Added tests for case

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132551 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-08 12:48:09 +00:00
Ramona Neamtu
3ff3ba22c7 SHA-1867 : Unable to create links in Shared Files / My Files root node from the Search Results page
- Added method WebScriptUtil.resolveNodeReference() which will resolve nodeRef

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132544 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-08 11:47:03 +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
Alexandra Leahu
b4aed89bde REPO-1529: Ignore tests that fail recurrently on certain DBs for now
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132426 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-04 16:20:22 +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
Raluca Munteanu
8e553ec442 REPO-1523: REGRESS: Site created from API cannot be accessed via Share
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132249 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 13:49:34 +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
Gethin James
010643ebbd SEARCH-227: Adding additional display information for facetting api
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132107 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-02 16:01:30 +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