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 "angela (JIRA)" <ji...@apache.org> on 2013/02/05 10:44:12 UTC

[jira] [Created] (OAK-607) Old path after moving a new node

angela created OAK-607:
--------------------------

             Summary: 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


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