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/HEAD/root@126440 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-05-10 10:55:25 +00:00
parent 3adb8bbb06
commit 6775385f1f
2 changed files with 21 additions and 4 deletions

View File

@@ -1236,8 +1236,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");
}
}