You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2012/05/10 10:45:32 UTC

[jira] [Created] (OAK-93) Tree has wrong parent after move

Michael Dürig created OAK-93:
--------------------------------

             Summary: Tree has wrong parent after move
                 Key: OAK-93
                 URL: https://issues.apache.org/jira/browse/OAK-93
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core
            Reporter: Michael Dürig
            Assignee: Michael Dürig


After a move operation Tree.getParent() still returns the old parent.

{code}
Tree x = r.getChild("x");
Tree y = r.getChild("y");

root.move("x", "y/x");
assertEquals("y", x.getParent().getName());  // Fails
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (OAK-93) Tree has wrong parent after move

Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OAK-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig resolved OAK-93.
------------------------------

       Resolution: Fixed
    Fix Version/s: 0.3

Fixed at revision 1336567
                
> Tree has wrong parent after move
> --------------------------------
>
>                 Key: OAK-93
>                 URL: https://issues.apache.org/jira/browse/OAK-93
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 0.3
>
>
> After a move operation Tree.getParent() still returns the old parent.
> {code}
> Tree x = r.getChild("x");
> Tree y = r.getChild("y");
> root.move("x", "y/x");
> assertEquals("y", x.getParent().getName());  // Fails
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira