Search the web
Sign In
New User? Sign Up
jcr-crx
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Possible bug in workspace.copy method?   Message List  
Reply | Forward Message #712 of 782 |
Re: Possible bug in workspace.copy method?

--- In jcr-crx@yahoogroups.com, "paul_bowler" <paul_bowler@...> wrote:
>
> 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
>
> This 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]

This could be a bug in Jackrabbit. Please consult the Jackrabbit users or dev
mailing list (http://jackrabbit.apache.org/mailing-lists.html) and maybe report
an issue (http://jackrabbit.apache.org/issue-tracker.html).

Same-name siblings create a lot of problems, not only on the implementation
side, but also when using them in applications, since the paths are not stable
so it's always good to avoid them altogether.

Regards,
Alex




Thu Jun 18, 2009 4:49 pm

alexander.kl...
Offline Offline
Send Email Send Email

Forward
Message #712 of 782 |
Expand Messages Author Sort by Date

I'm duplicating nodes in our JCR using workspace.copy(workspace, srcPath, destPath) and am experiencing strange behaviour. This succeeds as expected: srcPath =...
paul_bowler
Offline Send Email
Jun 18, 2009
2:05 pm

... This could be a bug in Jackrabbit. Please consult the Jackrabbit users or dev mailing list (http://jackrabbit.apache.org/mailing-lists.html) and maybe...
alexander.klimetschek
alexander.kl...
Offline Send Email
Jun 18, 2009
4:49 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help