128517 jvonka: REPO-874: Improve REST fwk: improve error message if a POST operation is attempted with multiple items
- rationalise the code when handling POST for an API "operation" or POST to a collection that is marked as "allowMultiple=false"
- they should now consistently return the same existing error message: "Only 1 entity is supported in the HTTP request body"
- add api sanity tests to "create site", "create rating" and some of the node op's, such as "/move" & "/copy"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129168 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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
127612 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127450 jvonka: Node Associations - creating/listing primary child assoc type other than cm:contains
- fix test fallout (400 -> 422 for model integrity exceptions)
- RA-1092
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127719 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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
127601 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127330 amukha: RA-941: V1 REST API Tests: rationalise the test startup - eg. only create test data when needed ;-)
- Added checks to defer test data creation until it is required.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127693 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
127557 jkaabimofrad: Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
125609 jvonka: RA-952: If relative path cannot be resolved due to a permissionn error, return 404 (rather than 403)
- when listing children or getting node info
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127651 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126563 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
124538 jvonka: RA-896: Nodes API - fix list children filter
- return all results if no filter specified
- return 400 if both isFile and isFolder are true, or nodeType is specified along with isFile or isFolder
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126909 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126549 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
124197 jvonka: RA-896: Fix Nodes API when getting st:site (single or listing) to not show delete in allowableOperations & also return 403 (rather than 500) if trying to delete/move
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126895 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126548 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
124180 jvonka: RA-896: Fix filter by "where=(isFile=false and isFolder=false)"
- when listing node children
- will list cmobject, including sub-types (except cm:folder & cm:content, including sub-types)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126894 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126546 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
124063 jvonka: RA-885: Nodes (FileFolder) API - upload (create node with file content) improvements
- guess mimetype if (multi-)part Content-Type field is missing or is default binary mime type (application/octet-stream)
- ignore filename override if null or empty
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126892 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126543 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
123868 jkaabimofrad: RA-856: Added support for REST APIs “/content” endpoints to optionally set their own cache. (Currently, only the Renditions API is setting its own cache)
- Removed the http attachment header setting from the AbstractResourceWebScript, as the ContentStreamer already has this feature
- Reformatted ContentStreamer according to Alfresco code standards
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126888 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126540 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
123376 jvonka: Nodes (FileFolder) API - extra delete check (hence also move) for special system folders, currently Company Home, Sites and Data Dictionary - even for an admin
RA-770, RA-642, RA-806
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126885 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126531 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
123163 jvonka: RA-706, ACE-5113: Platform - OwnableService - when setting owner check that username currently exists (at time of property update)
- update Nodes API (remove extra check)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126875 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126528 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
123112 jvonka: Nodes (FileFolder) API - version options when updating/uploading (overwriting) existing content
- add tests .. for now check version label only (pending future "list version history" + "get version" etc)
RA-690
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126872 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126523 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
123046 jvonka: Update API tests for - tweaks for common code, also check that Last-Modified and Expires are not null when downloading file content/rendition
RA-641, RA-676, RA-829, RA-830
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126867 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126508 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
122778 jvonka: Nodes (FileFolder) API - list (folder) children - add "includeSource" option
- optionally also lookup and return the folder/node info for parent (ie. source)
- especially useful if also using "relativePath" to resolve the actual parent to be listed
RA-823, RA-634, RA-753
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126852 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
126507 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
122770 jvonka: Nodes & Shared Links APIs - some test refactoring
- primarily introduce createTextFile helper (in addition to createFolder/createNode) to reduce dependency on "repoService" test helper
- also means we're using the v1 api to upload test content :-)
RA-388, RA-773
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126851 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261