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 B5E3A79BB for ; Tue, 18 Oct 2011 12:32:35 +0000 (UTC) Received: (qmail 94413 invoked by uid 500); 18 Oct 2011 12:32:35 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 94362 invoked by uid 500); 18 Oct 2011 12:32:34 -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 94355 invoked by uid 99); 18 Oct 2011 12:32:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 12:32:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Tue, 18 Oct 2011 12:32:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C5FDA30FC3F for ; Tue, 18 Oct 2011 12:32:10 +0000 (UTC) Date: Tue, 18 Oct 2011 12:32:10 +0000 (UTC) From: "Julian Reschke (Updated) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <2035252002.5760.1318941130812.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1299516169.13990.1318599371837.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (JCR-3115) Versioning fixup leaves persistence in a state where the node can't be made versionable again MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-3115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julian Reschke updated JCR-3115: -------------------------------- Attachment: JCR-3115.patch 1) adds test case 2) augments InconsistentVersioningState with information about the VHR's nodeId 3) enables RepositoryChecker to rename the VHR in place > Versioning fixup leaves persistence in a state where the node can't be made versionable again > --------------------------------------------------------------------------------------------- > > Key: JCR-3115 > URL: https://issues.apache.org/jira/browse/JCR-3115 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core, versioning > Reporter: Julian Reschke > Assignee: Julian Reschke > Priority: Minor > Attachments: AutoFixCorruptNode.java, JCR-3115.patch > > > Jackrabbit's version recovery mode (org.apache.jackrabbit.version.recovery system property) disconnects all version histories that expose problems that manifest in unexpected exceptions being thrown. "disconnects" means removing the properties defined for mix:versionable and removing the mixin type. The actual versioning related nodes remain in place. > The problem: when re-adding mix:versionable, ItemSaveOperation.initVersionHistories tries to create the new version history in the same location (the path being derived from the versionable node's identifier), and consequently fails because of the broken underlying storage. > (attaching a work-in-progress test case that illustrates the problem) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira