From dev-return-32528-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Oct 5 13:03:58 2011 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 C234F996F for ; Wed, 5 Oct 2011 13:03:58 +0000 (UTC) Received: (qmail 88883 invoked by uid 500); 5 Oct 2011 13:03:58 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 88843 invoked by uid 500); 5 Oct 2011 13:03:58 -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 88833 invoked by uid 99); 5 Oct 2011 13:03:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 13:03:58 +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; Wed, 05 Oct 2011 13:03:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 49FC42AA3DF for ; Wed, 5 Oct 2011 13:03:34 +0000 (UTC) Date: Wed, 5 Oct 2011 13:03:34 +0000 (UTC) From: "Julian Reschke (Updated) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <504077589.11630.1317819814305.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <348278120.7622.1310047396631.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (JCR-3017) Version history recovery fails in case a version does not have a jcr:frozenNode 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-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julian Reschke updated JCR-3017: -------------------------------- Fix Version/s: 2.3.1 2.2.10 Affects Version/s: (was: 2.2) Status: Patch Available (was: Open) > Version history recovery fails in case a version does not have a jcr:frozenNode > ------------------------------------------------------------------------------- > > Key: JCR-3017 > URL: https://issues.apache.org/jira/browse/JCR-3017 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: versioning > Reporter: Honwai Wong > Assignee: Julian Reschke > Priority: Minor > Fix For: 2.2.10, 2.3.1 > > Attachments: JCR-3017.patch > > > With JCR-2551 in place, a version recovery mode has been introduced. Problem now is that in case a version is encountered that misses a mandatory jcr:frozenNode, an InternalError is thrown by o.a.j.c.version.InternalVersionHistoryImpl#createVersionInstance. Since o.a.j.c.RepositoryChecker#checkVersionHistory only catches Exception, it fails to catch it properly which leads to a complete repository shutdown. > Throwing for example a RuntimeException instead fixes 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