mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user