Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 90853 invoked from network); 24 Feb 2009 15:42:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 15:42:03 -0000 Received: (qmail 53513 invoked by uid 500); 24 Feb 2009 15:42:01 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 53498 invoked by uid 500); 24 Feb 2009 15:42:01 -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 53487 invoked by uid 99); 24 Feb 2009 15:42:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 07:42:01 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.38.165.101] (HELO SMTP.butterworths.co.uk) (213.38.165.101) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 15:41:54 +0000 Received: from SMTP.butterworths.co.uk (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 735724A6B76_9A4139DB for ; Tue, 24 Feb 2009 15:34:53 +0000 (GMT) Received: from lngwokexcp002.legal.regn.net (unknown [10.63.41.238]) by SMTP.butterworths.co.uk (Sophos Email Appliance) with ESMTP id 6793A4A6B67_9A4139DF for ; Tue, 24 Feb 2009 15:34:53 +0000 (GMT) Received: from LNGWOKEXCP01VA.legal.regn.net ([10.63.41.215]) by lngwokexcp002.legal.regn.net with Microsoft SMTPSVC(6.0.3790.3959); Tue, 24 Feb 2009 15:41:32 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Apostrophe in path generates error Date: Tue, 24 Feb 2009 15:41:32 -0000 Message-ID: <466EDF15B3EE964CB2E59849400E40E10F2C1873@LNGWOKEXCP01VA.legal.regn.net> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Apostrophe in path generates error Thread-Index: AcmWBeAOhGxiqsEaRbikj4vHArobNwAj8Caw From: "Connor, Brett (LNG-TWY)" To: X-OriginalArrivalTime: 24 Feb 2009 15:41:32.0739 (UTC) FILETIME=[5E41A130:01C99696] X-Virus-Checked: Checked by ClamAV on apache.org I've just come across the same problem. ' and a few others are not legal in JCR path names. My problem is that they are legal in WebDAV and so I need to escape / unescape these for WebDAV access. I've had a quick look around to see where there is a natural extension point for this but so far I can't find the right place. I've looked at IOHandler, DavLocator etc but everywhere seems to be more of a copy / paste than just the extension I would expect to just escape / unescape one name - other places I've extended Jackrabbit have been well architected extension points. This leads to me to think I'm not looking in the right place. Any pointers are welcome. Thanks -----Original Message----- From: news [mailto:news@ger.gmane.org] On Behalf Of Chris Sent: 23 February 2009 22:24 To: users@jackrabbit.apache.org Subject: Apostrophe in path generates error When I call session.getItem(path) and the path has an apostrophe in a filename, it generates a "javax.jcr.RepositoryException: invalid path:"=20 error. Does anyone know why? Do I need to escape apostrophes? What other characters need to be escaped? Is this documented anywhere? LexisNexis is a trading name of REED ELSEVIER (UK) LIMITED - Registered off= ice - 1-3 STRAND, LONDON WC2N 5JR Registered in England - Company No. 02746621