Steven Githens wrote:
Julian Reschke wrote:
As far as I can tell, the only thing in

    2f43f30b-f1cc-4b62-803b-dd37c2be1693

that needs to be escaped would be the leading digit:

    _x0032_2f43f30b-f1cc-4b62-803b-dd37c2be1693

(check out <http://people.apache.org/~mreutegg/jcr-query-translator/translator.html>, really useful for testing).
Thanks Julian, that fixed the problem.

Is there a utility method or class somewhere that can be used for escaping these paths? These often come from dynamically generated paths by users, and I am unsure of all the exact rules that need to be parsed and escaped. Or, I would at least like to use some code that has been tested by others. ;)
Thanks,
Steve

Have a look at org.apache.jackrabbit.util.ISO9075.

Best regards, Julian

Reply via email to