[ http://issues.apache.org/jira/browse/JCR-69?page=history ]
Stefan Guggisberg reassigned JCR-69:
------------------------------------
Assign To: Stefan Guggisberg
> 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