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 <[email protected]>: > 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. >
