Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 58848 invoked from network); 13 Dec 2008 05:31:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2008 05:31:34 -0000 Received: (qmail 20738 invoked by uid 500); 13 Dec 2008 05:31:46 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 20701 invoked by uid 500); 13 Dec 2008 05:31:46 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 20690 invoked by uid 99); 13 Dec 2008 05:31:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2008 21:31:46 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of antony.blakey@gmail.com designates 209.85.142.189 as permitted sender) Received: from [209.85.142.189] (HELO ti-out-0910.google.com) (209.85.142.189) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2008 05:31:32 +0000 Received: by ti-out-0910.google.com with SMTP id a1so1082877tib.3 for ; Fri, 12 Dec 2008 21:31:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=cugzWbSbUecFdOmPbi3iLYgBjrxvYyAsaqZ5kseaZ8Y=; b=Vk0VlxR4kMDqKDilGrihSA4DZyR3c0GywxGvCpXmBw74CK3qrRSrP6CPWZ78I7XkfF EFmF45mwln+qmh6E9DE0gSFzFfHfFJD1kzDOg1akeZgxHAK+eRMxMgNWKsOsf0Rj0/rV FDet6I2MvEoOFNT64kYWkBNefH1qxv2RLb8q0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=A5zLdkaGbM/pc4NsXBSJOulXpUBp9ZrBQXJnJC0apJsEfsRI01L3LppfSTNHgj/q07 4RdHz0YS62Q+GDc001TdXKiCVZfoDy7bU7O+yakpS3I6bxPy3MbJV0vzcpeOSiAXV9z8 ZvrCt6i9I1cHzMmKVDhwhPZ6EwOdeDNRP/Ccg= Received: by 10.110.61.18 with SMTP id j18mr6377417tia.49.1229146270179; Fri, 12 Dec 2008 21:31:10 -0800 (PST) Received: from ?192.168.0.16? (ppp121-45-41-103.lns10.adl2.internode.on.net [121.45.41.103]) by mx.google.com with ESMTPS id b4sm3240620tic.2.2008.12.12.21.31.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Dec 2008 21:31:09 -0800 (PST) Message-Id: From: Antony Blakey To: dev@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: slash escaping (was 0.9.0 Release) Date: Sat, 13 Dec 2008 16:01:03 +1030 References: <0EC6A3E0-15BA-4BBB-A0A3-9ED9D04E3C40@apache.org> <716BFD51-C24A-438E-B9CA-DD0406F80D45@gmail.com> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org On 13/12/2008, at 3:48 PM, Chris Anderson wrote: > I think opening up the character classes of the db and design doc > names like this is OK, as it won't effect people who use the current > permitted character set. There's no reason this would not work > alongside the aforementioned design and attachment path slash rules. Agreed. I still think a special rule for doc ids starting with '_' isn't a great idea, but obviously I'm in the minority on that, and it's a trivial issue compared to restricting names as is currently done. > Antony, I think you'll find that once you've written the appropriate > JavaScript tests for this feature, it'll be hard to resist adding > escaping to the Erlang db-name validation code. Actually, the name validation would merely consist of 'not-empty'. The gating issue is getting agreement about the on-disk structure, because the key change is breaking the name <=> filename equivalence assumption. Antony Blakey ------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 The difference between ordinary and extraordinary is that little extra.