You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2005/12/07 12:24:08 UTC

[jira] Created: (JCR-288) inconsistent session state after Item/Session.save() throwing ReferentialIntegrityException

inconsistent session state after Item/Session.save() throwing ReferentialIntegrityException
-------------------------------------------------------------------------------------------

         Key: JCR-288
         URL: http://issues.apache.org/jira/browse/JCR-288
     Project: Jackrabbit
        Type: Bug
  Components: core  
 Environment: svn r354756
    Reporter: Stefan Guggisberg
 Assigned to: Stefan Guggisberg 
     Fix For: 1.0


issue reported by Tomasz.Dabrowski@cognifide.com on jackrabbit dev list.

code fragment to reproduce issue:

// setup test case

Node parent = root.addNode("a", "nt:unstructured");
Node child1 = parent.addNode("b", "nt:unstructured");
child1.addMixin("mix:referenceable");
Node child2 = parent.addNode("c", "nt:unstructured");
child2.setProperty("ref", child1);
root.save();

// perform test

try {
    child1.remove();
    parent.save();
} catch (ReferentialIntegrityException rie) {
    // expected since child1 is still being referenced by property "ref" of child2
}

parent.remove();     // ==> should succeed but throws ItemNotFoundException 



-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (JCR-288) inconsistent session state after Item/Session.save() throwing ReferentialIntegrityException

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-288?page=all ]
     
Stefan Guggisberg closed JCR-288:
---------------------------------

    Resolution: Fixed

fixed in svn r355510

> inconsistent session state after Item/Session.save() throwing ReferentialIntegrityException
> -------------------------------------------------------------------------------------------
>
>          Key: JCR-288
>          URL: http://issues.apache.org/jira/browse/JCR-288
>      Project: Jackrabbit
>         Type: Bug
>   Components: core
>  Environment: svn r354756
>     Reporter: Stefan Guggisberg
>     Assignee: Stefan Guggisberg
>      Fix For: 1.0

>
> issue reported by Tomasz.Dabrowski@cognifide.com on jackrabbit dev list.
> code fragment to reproduce issue:
> // setup test case
> Node parent = root.addNode("a", "nt:unstructured");
> Node child1 = parent.addNode("b", "nt:unstructured");
> child1.addMixin("mix:referenceable");
> Node child2 = parent.addNode("c", "nt:unstructured");
> child2.setProperty("ref", child1);
> root.save();
> // perform test
> try {
>     child1.remove();
>     parent.save();
> } catch (ReferentialIntegrityException rie) {
>     // expected since child1 is still being referenced by property "ref" of child2
> }
> parent.remove();     // ==> should succeed but throws ItemNotFoundException 

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira