From dev-return-1443-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Thu Dec 11 21:43:57 2008 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 64845 invoked from network); 11 Dec 2008 21:43:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2008 21:43:57 -0000 Received: (qmail 21848 invoked by uid 500); 11 Dec 2008 21:44:09 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 21811 invoked by uid 500); 11 Dec 2008 21:44:09 -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 21797 invoked by uid 99); 11 Dec 2008 21:44:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 13:44:09 -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: domain of antony.blakey@gmail.com designates 209.85.142.187 as permitted sender) Received: from [209.85.142.187] (HELO ti-out-0910.google.com) (209.85.142.187) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 21:43:47 +0000 Received: by ti-out-0910.google.com with SMTP id a1so726343tib.3 for ; Thu, 11 Dec 2008 13:43:26 -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=wpfUaSBL7wDedO747vhGqCEbnIRKQN6czvSjA+r2q7M=; b=x2i0P1ZBqYJkFdmfREDMeENj6Hbm0vGPaIUPD2pMJHZIyTVf3wj2Gj43uC+iXTP9ha r9eYawIFOLCBfBx8eNUbSJACVSThXJAKMEUtuuEx1as8Rj3BraKv95IJZBFiPFkkvhIq nab3tzdOnHEU94cc3o9BBzMtGSVFIW64i0i8o= 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=w29ayh20kwX/ZutXknH9xAmLKs48OnIelnabCUE7gFn/AW818i1Ou8d6exsNyyrSWK wjyelyXVs3cASVbbJ+K/E11PubqYAb+kkgwX77jVvK6utaergrmqlDLbtX8orsMjcJWp Y3l5rB2gd9usQeiD8+XWzYONNcTK8E8iYceTs= Received: by 10.110.49.6 with SMTP id w6mr4277942tiw.23.1229031806413; Thu, 11 Dec 2008 13:43:26 -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 a4sm1651859tib.27.2008.12.11.13.43.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Dec 2008 13:43:25 -0800 (PST) Message-Id: <1BB601C8-8FBB-4577-A56E-36B5C83E957A@gmail.com> From: Antony Blakey To: dev@couchdb.apache.org In-Reply-To: <20081211213107.GB22257@tumbolia.org> 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: Fri, 12 Dec 2008 08:13:19 +1030 References: <0EC6A3E0-15BA-4BBB-A0A3-9ED9D04E3C40@apache.org> <20081211210620.GI26734@tumbolia.org> <20081211211745.GL26734@tumbolia.org> <91FAD258-3E03-477D-A483-AAD3FE1DD7B1@gmail.com> <20081211213107.GB22257@tumbolia.org> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org On 12/12/2008, at 8:01 AM, Noah Slater wrote: > On Fri, Dec 12, 2008 at 07:57:44AM +1030, Antony Blakey wrote: >> Generally 256 chars. Start URL-encoding unicode filenames from >> UTF-8 (not sure >> if URL encoding does raw unicode), and this could be reached for >> design >> documents. Not likely, but something that is easy to deal with - 0, >> 1, >> infinity wherever possible. > > URL encode filenames, truncate at 256 characters. Caveat emptor. URL encode filenames, if the filename length is > X then take a prefix and append an MD5 of the full name. No problem. That was my original suggestion. Maintain a mapping document for in case X is small, although IMO that's a good idea anyway because it's an absolute fallback and guarantees a lossless transformation. Caveat emptor isn't a great design philosophy. Antony Blakey ------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 The difference between ordinary and extraordinary is that little extra.