Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 52222 invoked from network); 9 Aug 2006 08:51:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 08:51:42 -0000 Received: (qmail 17856 invoked by uid 500); 9 Aug 2006 08:51:41 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 17693 invoked by uid 500); 9 Aug 2006 08:51:41 -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 17684 invoked by uid 99); 9 Aug 2006 08:51:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 01:51:41 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tobias.strasser@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 01:51:40 -0700 Received: by nf-out-0910.google.com with SMTP id n28so89156nfc for ; Wed, 09 Aug 2006 01:51:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=O1OgHOWGvFLtUgj/akeFFnh2GqcDW0hf2pHNCBTXu4t+e3dB8FbEK7ZH9gC/UFe1KtuLDS5/6YNuBN8eM2AAVtnblFGADmBxH6Ia145drMG1uoSzmy7jenEuddlzpIkHoXQKCi+n0ofbtFNK6MZtryY7JqJB6sBBwjbdNS404sQ= Received: by 10.78.177.3 with SMTP id z3mr234203hue; Wed, 09 Aug 2006 01:51:19 -0700 (PDT) Received: by 10.78.50.18 with HTTP; Wed, 9 Aug 2006 01:51:18 -0700 (PDT) Message-ID: <8be731880608090151y20c4b248ja50d51001f67be5c@mail.gmail.com> Date: Wed, 9 Aug 2006 10:51:18 +0200 From: "Tobias Bocanegra" Reply-To: tobias.bocanegra@day.com Sender: tobias.strasser@gmail.com To: dev@jackrabbit.apache.org Subject: Re: Issue when restoring the Node version history In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8be731880608070200k61e42d6bj14eaba0ec1cac388@mail.gmail.com> <8be731880608070232m59021793s3a89f01c1fc56434@mail.gmail.com> X-Google-Sender-Auth: 817ca89a7f247f4f X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > Hi Tobias, > > The issue I have is nothing allow > > It's really simpler for me to update all protected nodes, restore the > version history and then switch back to the protection. However to do so, I > don't see any other option than adding a method reregisterBuiltIn in the > NodeTypeManager... I am not sure if it's a wise decision. Besides when I > try commenting those check, the import is false. I think some reference are > out of date... > > So unless you have a better idea, I have to implement an importXML method > for the Versioning. This method will have to be in core and would import any > /jcr:system/jcr:versionStorage of Jackrabbit. > > What do you think of this solution? Do you have a better idea? i would write an own org.apache.jackrabbit.core.xml.Importer that does not check the protected states, and then use this one for the version workspace. i would even setup an own fake workspace for the version storage and not go via the normal one. regards, toby -- -----------------------------------------< tobias.bocanegra@day.com >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---