Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 72454 invoked from network); 18 May 2005 09:26:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2005 09:26:06 -0000 Received: (qmail 25895 invoked by uid 500); 18 May 2005 09:25:02 -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 25873 invoked by uid 99); 18 May 2005 09:25:02 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of peeter.piegaze@gmail.com designates 64.233.184.196 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.196) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 18 May 2005 02:24:48 -0700 Received: by wproxy.gmail.com with SMTP id 69so105604wra for ; Wed, 18 May 2005 02:24:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AVrz1icVeA84jhYQMDTXDj+H5v5LhS4I/1mMAFcLS18Aeq5z6Rl/xNyrLrndQhiylwsxjsznq1VYyriIqF2acxLrNg1h0swq70ApZGUp1tjkY51RjJp6GvvMOgvmSvq6SBdeuuin5ai0EBRc2p0xzoelHij/UDUKq6swSlPD8Dk= Received: by 10.54.83.10 with SMTP id g10mr198185wrb; Wed, 18 May 2005 02:24:24 -0700 (PDT) Received: by 10.54.101.15 with HTTP; Wed, 18 May 2005 02:24:24 -0700 (PDT) Message-ID: <3df33a2505051802244459d5e0@mail.gmail.com> Date: Wed, 18 May 2005 11:24:24 +0200 From: Peeter Piegaze Reply-To: peeter.piegaze@day.com To: jackrabbit-dev@incubator.apache.org Subject: Re: encoding jcr names In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <428A4E6B.1050701@osafoundation.org> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 5/18/05, Roy T. Fielding wrote: > On May 17, 2005, at 1:04 PM, Brian Moseley wrote: >=20 > > section 6.2.5.2 of the jcr spec (0.16.3) disallows several characters > > in jcr names. my webdav server needs to be able to support nodes with > > names containing at least one of these characters ("'"). what's the > > best strategy for handling this requirement? >=20 > That changed in the final versions of the spec. IIRC, replace the > character "'" with "_x0027_" (i.e., underscore x UTF-16-hex underscore). > That's from memory, but I'm sure Peeter will correct me if I forgot > something. The convention is from some obscure XML NAMES standard. Its not so much that anything changed in this department since 0.16.3. The syntax of names and paths is the same. The escaping mechanism Roy mentioned describes how JCR names which are not valid XML names are mangled upon export to XML. Brian, in your case you are going from a some webdavish resource name and trying to produce a valid JCR name. The ugliness of the above escaping mechanism stems from the limitations of XML. Since JCR names do not suffer from these limitations your options for converting your resource name to JCR are more open. Off the top of my head I don't think URL encoding will conflict with the export to XML...or maybe you have an example in mind? Cheers, Peeter