Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 85770 invoked from network); 24 Oct 2005 16:47:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Oct 2005 16:47:53 -0000 Received: (qmail 73884 invoked by uid 500); 24 Oct 2005 16:47:51 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 73873 invoked by uid 99); 24 Oct 2005 16:47:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2005 09:47:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2005 09:47:49 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 460A0338E7 for ; Mon, 24 Oct 2005 18:47:32 +0200 (CEST) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03991-02 for ; Mon, 24 Oct 2005 18:47:30 +0200 (CEST) Received: from [10.0.0.139] (jayce.anyware [10.0.0.139]) by mail.anyware-tech.com (Postfix) with ESMTP id 90EB7338E3 for ; Mon, 24 Oct 2005 18:47:30 +0200 (CEST) Message-ID: <435D1020.9020708@anyware-tech.com> Date: Mon, 24 Oct 2005 18:47:28 +0200 From: =?ISO-8859-1?Q?Rapha=EBl_Franchet?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: Xpath query, jcr:like and character ' References: <435CE235.2050101@anyware-tech.com> <435D0F82.10605@gmx.net> In-Reply-To: <435D0F82.10605@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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, > >