You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2013/03/07 15:48:16 UTC
[jira] [Resolved] (OAK-607) Old path after moving a new node
[ https://issues.apache.org/jira/browse/OAK-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig resolved OAK-607.
-------------------------------
Resolution: Fixed
Fix Version/s: 0.7
Fixed at revision 1453897
> Old path after moving a new node
> --------------------------------
>
> Key: OAK-607
> URL: https://issues.apache.org/jira/browse/OAK-607
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: jcr
> Reporter: angela
> Assignee: Michael Dürig
> Fix For: 0.7
>
>
> Renaming or Moving a new Node using Session#move succeeds but the node still
> exposes the old path.
> {code}
> @Test
> public void testMoveNewNode() throws Exception {
> Node node1 = testRootNode.addNode(nodeName1);
> Node node2 = testRootNode.addNode(nodeName2);
> String destPath = node2.getPath() + "/" + nodeName1;
> move(node1.getPath(), destPath, false);
> assertEquals(destPath, node1.getPath());
> superuser.save();
> assertEquals(destPath, node1.getPath());
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira