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
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
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
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
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
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
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
Cristian Turlica
c70a9f960e
REPO-1459: Make NodesImpl.isSpecialNode protected
...
- changed isSpecialNode method signature to protected and updated Java doc
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131893 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-31 13:05:57 +00:00
Cristian Turlica
aab5a5e6be
REPO-1404: Improve extensibility of NodesImpl
...
- refactored method buildSearchTypesAndIgnoreAspects based on feedback from IG team member
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-27 15:00:57 +00:00
Cristian Turlica
ad7911fad9
REPO-1404: Improve extensibility of NodesImpl
...
- refactored the listChildren by adding dedicated filter and sort methods, also added protected getters for the services and repositoryHelper.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-24 14:36:44 +00:00
Jan Vonka
befcb4acf0
REPO-1443: V1 REST API - minor - accept well-known aliases for "update node info"
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131582 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-19 20:35:14 +00:00
Alexandru Epure
dd1aebb5ef
REPO-1158: Removed extra space from the received message.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130543 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-12 08:15:19 +00:00
Ancuta Morarasu
120ea60c74
Clean-up after merges to 5.2.N.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130424 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-07 16:48:55 +00:00
Ancuta Morarasu
59eed12c13
REPO-1164: [REST API] 422 error when executing unlock on a node that is not locked
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-07 11:48:02 +00:00
Gethin James
04881cfa0c
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
130050 gjames: SEARCH-161: Supporting synonyms for sorting fieldNames
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130297 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 15:38:47 +00:00
Gethin James
50d8381a2e
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
130015 gjames: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1)
129790 jvonka: REPO-164 / REPO-1141: fix error mapping when unable to update content due to locked node (should be 409 not 500)
- also minor cleanup of error handling/mapping (handle within common "writeContent")
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130278 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 15:32:52 +00:00
Gethin James
91cc53e31b
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
129999 ahind: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1)
129643 amorarasu: REPO-164 / REPO-1086 - V1 REST API: Lock Node
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130261 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 14:58:13 +00:00
Martin Muller
ed67760ab4
Restrict lock method to content types. REPO-1158
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-26 09:15:52 +00:00
Jan Vonka
25988a8efb
REPO-1090: fix regress (V1 REST API - list children within the context of a smart folder)
...
- follow-on (re: NodeApiTest.getChildrenAssocType fallout - when returning any assoc, not just cm:contains)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129893 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-25 17:02:31 +00:00
Ancuta Morarasu
8dfbbeaf3d
REPO-1155 / REPO-160 / REPO-340 - V1 REST API: Remove "includeChildren" option for Lock / Unlock in the rest api (REPO-1163)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129892 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-25 16:16:37 +00:00
Jan Vonka
78ed7e9c2d
REPO-1090: fix regress (V1 REST API - list children within the context of a smart folder)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-25 12:14:41 +00:00
Ancuta Morarasu
b04cef45d1
REPO-340 / REPO-1136 - V1 REST API: Unlock Node
...
- Removed the allowCheckedOut option from the unlock body
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-23 20:24:18 +00:00
Ancuta Morarasu
d53ac5135a
REPO-340 / REPO-1136 - V1 REST API: Unlock Node
...
- Unlock with includeChildren=true - fixed + testcases
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129791 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-23 11:34:52 +00:00
Jan Vonka
650554b62c
REPO-164 / REPO-1141: fix error mapping when unable to update content due to locked node (should be 409 not 500)
...
- also minor cleanup of error handling/mapping (handle within common "writeContent")
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-23 11:14:03 +00:00
Jan Vonka
940fa92b21
REPO-1144: LockService - add isLocked & isLockedAndReadOnly common helper methods to public API
...
- remove duplicated code from various locations to use the new methods
- add sanity checks to Lock*Test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129764 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-22 14:20:52 +00:00
Ancuta Morarasu
ecec348d6c
REPO-164 / REPO-1086 - V1 REST API: Lock Node
...
- review suggestions
- added more test cases + utility methods
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129751 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-22 13:10:19 +00:00
Ancuta Morarasu
063dde5d8b
REPO-340 / REPO-1136 - V1 REST API: Unlock Node
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-19 18:37:10 +00:00
Jan Vonka
0376e880d0
REPO-1138 / REPO-983: Add support for the isLocked property
...
- can optionally "include" when getting node info, listing children, ...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129711 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-19 16:22:09 +00:00
Ancuta Morarasu
3374ed8e49
REPO-164 / REPO-1086 - V1 REST API: Lock Node
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129643 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-18 12:11:24 +00:00
Martin Muller
79149bf9b3
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128681 jvonka: V1 REST API: version history - add api sanity check for auto-version on metadata-only updates
REPO-348, REPO-313, REPO-905
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:57 +00:00
Martin Muller
bcf551a644
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128597 jvonka: REPO-900: Fix "autoRename not working if using a relativePath (with create/add node via json request)"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129175 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:20 +00:00
Martin Muller
1b474b8199
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128583 jvonka: V1 REST API: Node Version History - tweak "delete version" operation
- cannot delete last version for now (return 422)
REPO-835
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:11 +00:00
Martin Muller
93aa43babc
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128442 jvonka: V1 REST API: Update binary content - add optional name param (to allow rename on upload of a new version)
- api implementation + api sanity tests (+ve/-ve)
REPO-518
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129159 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:46:13 +00:00
Martin Muller
fa533a6b57
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128232 jvonka: V1 REST API: Node Version History - add "delete version" operation
- DELETE /nodes/nodeId/versions/versionId
REPO-835
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129136 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:13:51 +00:00
Martin Muller
ee91e0b457
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128207 jvonka: V1 REST API: Node Version History - add "revert version" operation
- ie. promote a previous version to become a new (most recent) version
- POST /nodes/nodeId/versions/versionId/revert (with request body, optionally majorVersion &/or comment)
REPO-236
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129134 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:13:42 +00:00
Martin Muller
c06865ed18
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128173 jvonka: REPO-839: Fix guess mimetype (if no file ext) - on upload and/or update (after a rename)
- improvement to REPO-495
- will also apply to REPO-518 when implemented
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129133 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:13:38 +00:00
Martin Muller
f88cccb1b7
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128135 jvonka: v1 REST API: fix possible NPE when optionally listing allowable ops for non-file/non-file (+ add sanity api test)
REPO-488, REPO-514
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129127 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:12:38 +00:00
Martin Muller
f4db00acf7
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128134 jvonka: v1 REST API: minor bug fix(es) to error handling when creating node with assocs + sanity api tests
REPO-476, REPO-477
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129126 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:11:36 +00:00
Martin Muller
c13683eea1
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128122 jvonka: v1 REST API: minor bug fix(es) to update http error code mappings (to 4xx rather than 500) + sanity api tests
REPO-475, REPO-512, REPO-516, REPO-473
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129125 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:10:41 +00:00
Andrei Rebegea
9203c6884a
Merged HEAD (5.2) to 5.2.N (5.2.1)
...
128104 jvonka: Merged RETURN-OF-THE-API (5.2.0) to HEAD (5.2)
128054: REPO-495: When uploading/updating binary content, guess mimetype and encoding
- follow similar pattern to v0 Upload API (ignore Content-Type header)
- in the future, we might wish to loosen this restriction [pending MNT-16381] and/or allow admin's option to update mimeType/encoding directly via node metadata update
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@128125 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-10 13:48:27 +00:00
Alan Davis
4a18a13f7b
Merged HEAD (5.2) to 5.2.N (5.2.1)
...
127619 jkaabimofrad: Missed changes during resolving conflicts.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127726 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 15:19:40 +00:00
Alan Davis
dc067d1878
Merged HEAD (5.2) to 5.2.N (5.2.1)
...
127617 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127512 jkaabimofrad: REPO-47: Per peer review, changed the upload API to throw an exception when requesting multiple renditions.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127724 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 15:19:29 +00:00
Alan Davis
f99ba16ec7
Merged HEAD (5.2) to 5.2.N (5.2.1)
...
127611 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127447 jvonka: Node Associations - creating/listing primary child assoc type other than cm:contains
- follow-on fix + test based on review back (create children below content)
- also -ve test for model integrity excet
- RA-1092
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127718 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 15:18:53 +00:00
Alan Davis
22d91cb857
Merged HEAD (5.2) to 5.2.N (5.2.1)
...
127606 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127419 jvonka: Node Associations - 1st cut for creating/listing primary child assoc type other than cm:contains
- TODO sanity tests, api spec tweaks
RA-1092
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127713 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 15:18:22 +00:00
Alan Davis
3f0bba6779
Merged HEAD (5.2) to 5.2.N (5.2.1)
...
127604 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127414 jvonka: Node Associations - create node with assocs (peer &/or secondary child)
- can be optionally used to create (eg. mandatory) assoc(s) to other existing node(s)
RA-925
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127711 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 15:18:10 +00:00
Alan Davis
9ebd44552d
Merged HEAD (5.2) to 5.2.N (5.2.1)
...
127589 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127094 jvonka: Node Associations - child assocs - isPrimary filter (for /parents and /children)
- RA-1053
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127681 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 14:16:16 +00:00
Alan Davis
8ccacdd032
Merged HEAD (5.2) to 5.2.N (5.2.1)
...
127587 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127040 jvonka: Node Associations - child & peer
- exclude "sys" namespace
- common code for listing
- RA-745, 920, RA-921, RA-930, RA-742, RA-918, RA-919
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127679 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 14:15:20 +00:00
Alan Davis
50af2e5cc1
Merged HEAD (5.2) to 5.2.N (5.2.1)
...
127579 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
126567 jvonka: Node Associations - further updates
- for child assocs, do not expose assoc child qname (nominally like file/folder for primary child assoc)
- additional api tests (+ve & -ve) for peer assocs & secondary child assocs
- RA-745, RA-920, RA-921, RA-930, RA-742, RA-918, RA-919
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127672 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-06-03 14:14:43 +00:00