Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 49228 invoked from network); 9 Aug 2006 08:43:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 08:43:11 -0000 Received: (qmail 10264 invoked by uid 500); 9 Aug 2006 08:43:10 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 10234 invoked by uid 500); 9 Aug 2006 08:43:10 -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 10225 invoked by uid 99); 9 Aug 2006 08:43:10 -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:43:10 -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 stefan.guggisberg@gmail.com designates 64.233.166.176 as permitted sender) Received: from [64.233.166.176] (HELO py-out-1112.google.com) (64.233.166.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 01:43:09 -0700 Received: by py-out-1112.google.com with SMTP id f28so247343pyf for ; Wed, 09 Aug 2006 01:42:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DKs050cZuJFXuEQ3Vmb5vl7lZEA3seajBGXPjxCLBxfvDuJbsrgaSB2y0Cvo2WQHB2odzCMlG/W/gU6wHI505lv5SJQ3K4tzzsrggPDt32RssK0I1C5E5tbGpAtRgQhntthvJ47wD7i2rAVnSTXrRz/rO56MEZhOMElq/AuLmkw= Received: by 10.65.250.11 with SMTP id c11mr695353qbs; Wed, 09 Aug 2006 01:42:49 -0700 (PDT) Received: by 10.64.48.5 with HTTP; Wed, 9 Aug 2006 01:42:48 -0700 (PDT) Message-ID: <90a8d1c00608090142l10db223bn30f58760dfcf9c7@mail.gmail.com> Date: Wed, 9 Aug 2006 10:42:48 +0200 From: "Stefan Guggisberg" 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-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/8/06, Nicolas wrote: > 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. it's not, -1 for reregisterBuiltIn importXML is not suitable for restoring system managed data. restoring version data (whether that's a good idea is another question) should definitely be handled by the VersionManager. cheers stefan > 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? > > Nico > > On 8/7/06, Nicolas wrote: > > > > > > > > ---------- Forwarded message ---------- > > From: Nicolas < ntoper@gmail.com> > > Date: Aug 7, 2006 11:33 AM > > Subject: Re: Issue when restoring the Node version history > > To: tobias.bocanegra@day.com > > > > Yes that's why I thought :) > > > > I do think however, adding an import method to the VersionManager is way > > more elegant. Do you agree? > > > > > > On 8/7/06, Tobias Bocanegra wrote: > > > > > > > Why wouldn't it work if we bypass the VersionManager? > > > > > > you would need to flush all the caches. but since you probably restart > > > the repo anyways after restore, this might not be a problem. > > > > > > 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 >--- > > > > > > > > > > > -- > > a+ > > > > Nico > > my blog! http://www.deviant-abstraction.net !! > > > > > > -- > > a+ > > Nico > > my blog! http://www.deviant-abstraction.net !! > > > > > > -- > a+ > Nico > my blog! http://www.deviant-abstraction.net !! > >