Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 68371 invoked from network); 25 Jun 2009 07:16:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 07:16:22 -0000 Received: (qmail 40330 invoked by uid 500); 25 Jun 2009 07:16:32 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 40308 invoked by uid 500); 25 Jun 2009 07:16:32 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 40297 invoked by uid 99); 25 Jun 2009 07:16:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 07:16:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mreutegg@day.com designates 207.126.148.182 as permitted sender) Received: from [207.126.148.182] (HELO eu3sys201aog002.obsmtp.com) (207.126.148.182) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 25 Jun 2009 07:16:23 +0000 Received: from source ([209.85.218.216]) by eu3sys201aob002.postini.com ([207.126.154.11]) with SMTP ID DSNKSkMkMbrw1KqNYQsA08rln+Zthhlhc2J0@postini.com; Thu, 25 Jun 2009 07:16:02 UTC Received: by bwz12 with SMTP id 12so768631bwz.15 for ; Thu, 25 Jun 2009 00:16:01 -0700 (PDT) MIME-Version: 1.0 Sender: mreutegg@day.com Received: by 10.223.113.199 with SMTP id b7mr1725273faq.82.1245914161060; Thu, 25 Jun 2009 00:16:01 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Jun 2009 09:16:00 +0200 X-Google-Sender-Auth: 64f1a481a9dd65d0 Message-ID: Subject: Re: Possible bug in workspace.copy() method? From: Marcel Reutegger To: users Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, looks like a bug. can you please create a JIRA [0] issue and attach code how to reproduce it. thank you. regards marcel [0] http://issues.apache.org/jira/browse/JCR 2009/6/23 BOWLER Paul : > Hi All! > > I'm duplicating nodes in our JCR using workspace.copy(workspace, > srcPath, destPath) and am experiencing strange =A0behaviour. > > This succeeds as expected: > > srcPath =3D /templates/pcf:PCF/pcf:Service/pcf:Scene > destPath =3D /templates/pcf:PCF/pcf:Service/pcf:Scene > > However, the following succeeds (no exception is thrown), but puts the > copy in the wrong place: > > srcPath =3D /templates/pcf:PCF[2]/pcf:Service/pcf:Scene > destPath =3D /templates/pcf:PCF[2]/pcf:Service/pcf:Scene > > The copy is actually placed at /templates and renamed to pcf:PCF[3] > > Any ideas what is happening here? > > Thanks, > > Paul. >