[ 
https://issues.apache.org/jira/browse/OAK-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Dürig updated OAK-606:
------------------------------

    Attachment: OAK-606.patch

Patch demonstrating the behaviour of non referenceable nodes that have no 
referenceable ancestor. 

Specifically this implies 

{code}
   Node foo = session.getNode("/foo");
   session.move("/foo", "/bar");
   foo.getPath(); // throws IllegalItemStateException
   session.getRootNode().addNode("foo");
   foo.getPath(); // Evaluates to "/foo" 
{code}

Correct behaviour for referenceable nodes and their descendants is still to be 
done. But I'd like to have a consensus on this first before going further with 
that. 

As an implementation note: the patch removes an optimisation I did for the 
previous behaviour. We can try to put back something along these lines once 
we've got things right otherwise.
                
> Node becomes invalid after Session#move()
> -----------------------------------------
>
>                 Key: OAK-606
>                 URL: https://issues.apache.org/jira/browse/OAK-606
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: angela
>         Attachments: OAK-606.patch
>
>
> moving or renaming an existing (saved) node renders that node instance
> invalid and any access on that node instance will throw IllegalStateException.

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

Reply via email to