jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JCR-69) removing source parent node after session move throws on save
Date Wed, 16 Mar 2005 13:39:20 GMT
     [ http://issues.apache.org/jira/browse/JCR-69?page=history ]
     
Stefan Guggisberg closed JCR-69:
--------------------------------

    Resolution: Fixed

fixed in rev. 157745

> removing source parent node after session move throws on save
> -------------------------------------------------------------
>
>          Key: JCR-69
>          URL: http://issues.apache.org/jira/browse/JCR-69
>      Project: Jackrabbit
>         Type: Bug
>   Components: API
>     Reporter: Stefan Guggisberg
>     Assignee: Stefan Guggisberg

>
> the following code fragment illustrates the problem:
>         /**
>          * create the following node tree:
>          *     
>          *       + A
>          *         + B
>          *            + C
>          *         + D
>          */
>         Node A;
>         if (root.hasNode("A")) {
>             A = root.getNode("A");
>         } else {
>             A = root.addNode("A");
>         }
>         Node B = A.addNode("B");
>         Node C = B.addNode("C");
>         Node D = A.addNode("D");
>         root.save();
>         // move C under D
>         session.move("/A/B/C", "/A/D/C");
>         // remove B
>         A.getNode("B").remove();
>         /**
>          * the expected resulting node tree:
>          *     
>          *       + A
>          *         + D
>          *            + C
>          */
>         A.save();
> ==> the last save() will throw 
> javax.jcr.RepositoryException: inconsistency: failed to retrieve transient state for
...
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message