-
Bug
-
Resolution: Done
-
Major
-
3.0.0.Final
-
None
-
Workaround Exists
-
When renaming a node (i.e. keeping the same parent) using Session.move(srcPath, destPath), where the parent node doesn't allow same name siblings, the following exception is thrown:
Caused by: javax.jcr.ItemExistsException: A node definition that allows same name siblings could not be found for the node ...
This seems to be caused by the following line in JcrSession.move:
destParentNode.validateChildNodeDefinition(srcNode.name(), srcNode.getPrimaryTypeName(), true);
I think it should read the following instead:
destParentNode.validateChildNodeDefinition(destPath.getLastSegment().getName(), srcNode.getPrimaryTypeName(), true);
- is duplicated by
-
MODE-1744 rename node with move() fails without SNS enabled
- Closed