Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E69B605C for ; Fri, 15 Jul 2011 10:26:46 +0000 (UTC) Received: (qmail 84845 invoked by uid 500); 15 Jul 2011 10:26:45 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 84215 invoked by uid 500); 15 Jul 2011 10:26:28 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 84176 invoked by uid 99); 15 Jul 2011 10:26:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 10:26:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 10:26:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E66A4599EE for ; Fri, 15 Jul 2011 10:25:59 +0000 (UTC) Date: Fri, 15 Jul 2011 10:25:59 +0000 (UTC) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <25038809.16841.1310725559940.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <247883311.3343.1310399999864.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-3018) save leading to ReferentialIntegrityException leaves the repository in inconsistent state MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065836#comment-13065836 ] Stefan Guggisberg commented on JCR-3018: ---------------------------------------- > On the other hand, we should discuss in the EG what the expectations are for the usability of Node objects after a failed save operation. agreed > save leading to ReferentialIntegrityException leaves the repository in inconsistent state > ----------------------------------------------------------------------------------------- > > Key: JCR-3018 > URL: https://issues.apache.org/jira/browse/JCR-3018 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Reporter: Julian Reschke > Priority: Minor > > This is similar to JCR-2503. > After a failed save() due to ReferentialIntegrityException and a subsequent successfull save() operation, nodes that were transient upon the first save and were persisted in the 2nd save will be corrupted, a getPath() operation failing with: > javax.jcr.InvalidItemStateException: Item does not exist anymore: 75fe7eb7-7747-476e-bba8-c7f6b7f6e1a8 > at org.apache.jackrabbit.core.ItemImpl.itemSanityCheck(ItemImpl.java:116) > at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:90) > at org.apache.jackrabbit.core.ItemImpl.getPath(ItemImpl.java:376) > The test is identical to the one added for JCR-2503, except that the node does not get refetched using getNodeByIdentifier. > (test case follows) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira