Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 49150 invoked from network); 9 Dec 2005 15:00:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Dec 2005 15:00:37 -0000 Received: (qmail 11738 invoked by uid 500); 9 Dec 2005 15:00:31 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 11602 invoked by uid 99); 9 Dec 2005 15:00:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2005 07:00:30 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 822FB18C for ; Fri, 9 Dec 2005 16:00:09 +0100 (CET) Message-ID: <267573700.1134140409530.JavaMail.jira@ajax.apache.org> Date: Fri, 9 Dec 2005 16:00:09 +0100 (CET) From: "Stefan Guggisberg (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Closed: (JCR-288) inconsistent session state after Item/Session.save() throwing ReferentialIntegrityException In-Reply-To: <872679652.1133954648908.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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