Thank you marcel.

regard,

Raphaël

Marcel Reutegger a écrit :
Hi Raphaël,

this is a bug in the XPath query builder, it does not unescape the quote :-/

I've just committed a fix. svn revision: 328092

thanks for reporting this issue!

regards
 marcel

Raphaël Franchet wrote:

Hello,

Following the spec 6.6.4.9, to find node with title containing the word - test'test -, this should work: createQuery("//*[jcr:like(@title, '%test''test%')]", Query.XPATH).execute()

but it does not find my node with a title - test'test -.

ps: it works fine with a wildcard character: createQuery("//*[jcr:like(@title, '%test_test%')]", Query.XPATH).execute()

what is wrong ?
isn't escaping of ' not done with '' ?

thanks,


Reply via email to