On 27.11.12 15:12, Angela Schreiber wrote:
hi michael

rootNode.getOrAddTree("a/b/../../c/d/../../e/f", "");

adds the three sub trees /a/b, /c/d and /e/f. Is this really the
intended behaviour?

yes... see als JcrUtil in jackrabbit-commons.

Ok, I created JCR-3465. If this is intended the Javadoc should at least clearly state so.

However, AFAICT Node.getNode("a/b/../../c/d/../../e/f") is equal to Node.getNode("e/f"). So I don't see why the methods in JCRUtil should interpret path parameters any different.

Michael


kind regards
angela

Reply via email to