Merged HEAD (5.2) to 5.2.N (5.2.1)

126440 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
      121926 jvonka: Nodes (File/Folder) API - prevent move via PUT (change of parentId)
      - will be replaced shortly by POST /nodes/{nodeId}/move (RA-806)
      RA-683


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126786 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2016-05-11 11:20:04 +00:00
parent fda99837d8
commit cca46335c4
2 changed files with 21 additions and 4 deletions

View File

@@ -1243,8 +1243,8 @@ public class NodesImpl implements Nodes
if (! currentParentNodeRef.equals(parentNodeRef))
{
// move/rename - with exception mapping
moveOrCopy(nodeRef, parentNodeRef, name, false);
//moveOrCopy(nodeRef, parentNodeRef, name, false); // not currently supported - client should use explicit POST /move operation instead
throw new InvalidArgumentException("Cannot update parentId of "+nodeId+" via PUT /nodes/{nodeId}. Please use explicit POST /nodes/{nodeId}/move operation instead");
}
}