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
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/HEAD/root@126507 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
122184 jvonka: Nodes (FileFolder) API - remove test workaround (based on fix for ACE-5114)
- re: list children nodeType filtering - exact match with no sub-types - if super-type does not exist
- for example: where=(nodeType='cm:link includeSubTypes')
RA-811, ACE-5114
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126460 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121977 jvonka: Nodes (FileFolder) API - demonstrate nodeType query without subTypes using cm:link
- however, need to workaround subtle issue (if super-type qname has never existed) where FileFolder list (via GetChildren CQ) does not match and returns all ...
RA-811, RA-634
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126447 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121929 jvonka: Nodes (File/Folder) API - test for move operation
- update existing test
- switch from PUT /nodes/{nodeId} (with parentId) to POST /nodes/{nodeId} (with targetParentId)
RA-683, RA-806
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126442 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121834 jvonka: FileFolder (Node) API - test updates
- add sanity checks for node type that extend cm:cmobject (other than cm:folder / cm:content)
- also add -ve test if attempting to use relative path lookup to get node info (if path parent is not a folder)
RA-741, RA-672
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126424 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121799 jvonka: FileFolder API - minor validation fix when listing children via "relativePath"
- also check type of parentId (to be a folder) before (as well as after) resolving relative path
RA-753
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121438 jvonka: FileFolder API - support "relativePath" when listing children, eg. /nodes/{parentId}/children?relativePath=f1/f2
- also add tests both for list children & get node info
- TODO investigate/fix RA-755
RA-672, RA-753
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126407 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121206 jvonka: FileFolder API - NodeApiTest - minor updates around 'expected' checks
- pre-work (eg. before implementing "move" and also hiding "sys" namespace aspects/props, etc)
RA-638, RA-683
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126401 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
120807 jvonka: FileFolder API - create/update node will return 400 for unknown property or aspect (not in dictionary models)
- we no longer ignore invalid property and now also return correct error code for invalid aspect
- update NodeApiTest and A/C of JIRAs ( RA-635, RA-636, RA-637, RA-638 )
- note: in the future, we could consider option (eg. via query param) to allow residual props on create or update (or at least ability to nullify)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126398 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261