Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 32142 invoked from network); 1 Mar 2007 18:58:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 18:58:25 -0000 Received: (qmail 49428 invoked by uid 500); 1 Mar 2007 18:58:32 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 49413 invoked by uid 500); 1 Mar 2007 18:58:32 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 49404 invoked by uid 99); 1 Mar 2007 18:58:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 10:58:32 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jukka.zitting@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 10:58:21 -0800 Received: by ug-out-1314.google.com with SMTP id p31so424820ugc for ; Thu, 01 Mar 2007 10:58:00 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JrS9LwhwdEfJTeUIRw46hEfqOHso/FXWU7mtoZdo7x9kVv92p+hDOTQ8SoCI5Fc7/FI/PVFzkIMWVJQw3XMzlght7oSiOmLTq9kagcPzdcae6UH9f/ulBifcLFfOT66y1G/AfDx4Gsqb36GGjR4CuDaGwE6iK0PfhElGeDrcHVs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DNqyGH3uH8Y4zWFQVlHxyhh73DJw5GOhLU4hdvgcwDxlAr/fDOuKnJPn2fG1Rz7VNi3j0Dkm8d+Uls7t9+g3+r4bTX8qhzq3biIC+VwhprlPj1BIESLNCjggUEXJdbXlJvw+EPmuilpokN7EQhlP+UiLWxHQnf8yquu7/tPQlng= Received: by 10.78.165.16 with SMTP id n16mr187636hue.1172775479950; Thu, 01 Mar 2007 10:57:59 -0800 (PST) Received: by 10.78.106.19 with HTTP; Thu, 1 Mar 2007 10:57:59 -0800 (PST) Message-ID: <510143ac0703011057k56ecb27ck171678327358cb6f@mail.gmail.com> Date: Thu, 1 Mar 2007 20:57:59 +0200 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: XPath and Whitespaces In-Reply-To: <45E6D8B5.7060003@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45E6D8B5.7060003@gmx.de> X-Virus-Checked: Checked by ClamAV on apache.org Hi, On 3/1/07, Julian Reschke wrote: > Looks like a bug in > > private String createStatement(Property refProperty, String nameTest) > throws RepositoryException { > StringBuffer stmt = new StringBuffer(); > > stmt.append("/").append(jcrRoot).append(refProperty.getParent().getPath()); > stmt.append("/").append(jcrDeref).append("(@"); > stmt.append(refProperty.getName()).append(", '"); > stmt.append(nameTest).append("')"); > return stmt.toString(); > } > > to me (it should do the required escaping of the name). You're right. We actually encountered a similar problem earlier, see JCR-714 for the related bug report. BR, Jukka Zitting