jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Possible bug in workspace.copy() method?
Date Thu, 25 Jun 2009 07:16:00 GMT
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 <Paul.Bowler@alcatel-lucent.com>:
> Hi All!
>
> I'm duplicating nodes in our JCR using workspace.copy(workspace,
> srcPath, destPath) and am experiencing strange  behaviour.
>
> This succeeds as expected:
>
> srcPath = /templates/pcf:PCF/pcf:Service/pcf:Scene
> destPath = /templates/pcf:PCF/pcf:Service/pcf:Scene
>
> However, the following succeeds (no exception is thrown), but puts the
> copy in the wrong place:
>
> srcPath = /templates/pcf:PCF[2]/pcf:Service/pcf:Scene
> destPath = /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.
>

Mime
View raw message