129175 mmuller: 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/HEAD/root@129349 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129173 mmuller: 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/HEAD/root@129347 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129168 mmuller: Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
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/HEAD/root@129342 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129161 mmuller: Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
128476 jvonka: REPO-839: Follow-on to fix subtle issue in mimeType guess (ie. application/octet-stream should be last resort, if magic bytes indicate text and there is no file ext)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129335 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129133 mmuller: 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/HEAD/root@129327 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129132 mmuller: Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
128172 jvonka: V1 REST API: Node Version History - minor: move relevant test from NodeApiTest to NodeVersionsApiTest
- REPO-313: list version history
- REPO-228: update node content/binary
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129326 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129130 mmuller: Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
128162 jvonka: V1 REST API: Node Version History - initial api tests
- REPO-313: list version history
- REPO-327: get version info
- REPO-229: download version content
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129324 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@128104 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@127611 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@127601 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126563 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126549 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126548 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126546 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126543 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126540 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126531 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126528 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126523 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
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/HEAD/root@126508 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261