jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Pfister (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (JCR-108) Node's childNodes out of sync after unsuccessful save()
Date Thu, 14 Apr 2005 12:05:26 GMT
     [ http://issues.apache.org/jira/browse/JCR-108?page=history ]

Dominique Pfister reassigned JCR-108:
-------------------------------------

    Assign To: Dominique Pfister

> Node's childNodes out of sync after unsuccessful save()
> -------------------------------------------------------
>
>          Key: JCR-108
>          URL: http://issues.apache.org/jira/browse/JCR-108
>      Project: Jackrabbit
>         Type: Bug
>     Reporter: c keller
>     Assignee: Dominique Pfister
>     Priority: Minor

>
> If node.save() failes due to an exception in PersistanceManager.store(ChangeLog) a successive
call to node.getNodes() will still contain a reference to the node which failed to be persisted.
> This is the case even after a call to refresh(false).
> You have to restart Jackrabbit in order to get rid of this reference
> UseCase in kind of dummy-code:
> node.addNode("new", "nt:unstructured");
> node.save();
> => ItemStateException from persistance
> node.refresh(false);
> Iterator itr = node.getNodes();
> while(itr.hasNext()) {
>    child = itr.nextNode();
> }
> => Exception: "Failed to build path to "new"

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