Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 98540 invoked from network); 22 Apr 2010 09:20:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 09:20:15 -0000 Received: (qmail 62290 invoked by uid 500); 22 Apr 2010 09:20:15 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 61773 invoked by uid 500); 22 Apr 2010 09:20:13 -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 61766 invoked by uid 99); 22 Apr 2010 09:20:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 09:20:12 +0000 X-ASF-Spam-Status: No, hits=-1330.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 09:20:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3M9JoJY013450 for ; Thu, 22 Apr 2010 09:19:51 GMT Message-ID: <30142962.135641271927990946.JavaMail.jira@thor> Date: Thu, 22 Apr 2010 05:19:50 -0400 (EDT) From: "Tobias Bocanegra (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-2602) Removal of first version throws javax.jcr.ReferentialIntegrityException In-Reply-To: <28675291.17571271146011261.JavaMail.jira@thor> 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-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859757#action_12859757 ] Tobias Bocanegra commented on JCR-2602: --------------------------------------- can you create a test case that covers your issue? see examples in jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/RemoveVersionTest.java > Removal of first version throws javax.jcr.ReferentialIntegrityException > ----------------------------------------------------------------------- > > Key: JCR-2602 > URL: https://issues.apache.org/jira/browse/JCR-2602 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: versioning > Affects Versions: 2.0.0 > Reporter: Dirk Feufel > Assignee: Tobias Bocanegra > > A ReferentialIntegrityException occurs when I delete the first version succeeding the root version. Deleting other versions works fine. Here is the stack: > javax.jcr.ReferentialIntegrityException: Unable to remove version. At least once referenced. > at org.apache.jackrabbit.core.version.InternalVersionHistoryImpl.removeVersion(InternalVersionHistoryImpl.java:379) > at org.apache.jackrabbit.core.version.InternalVersionManagerBase.internalRemoveVersion(InternalVersionManagerBase.java:684) > at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$5.run(InternalVersionManagerImpl.java:495) > at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$DynamicESCFactory.doSourced(InternalVersionManagerImpl.java:760) > at org.apache.jackrabbit.core.version.InternalVersionManagerImpl.removeVersion(InternalVersionManagerImpl.java:493) > at org.apache.jackrabbit.core.version.InternalXAVersionManager.removeVersion(InternalXAVersionManager.java:264) > at org.apache.jackrabbit.core.version.VersionHistoryImpl.removeVersion(VersionHistoryImpl.java:253) > The code is simple: > VersionHistory vh = session.getWorkspace().getVersionManager().getVersionHistory(path); > vh.removeVersion(version); // where version is the first version succeeding the root version -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.