couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Slater <>
Subject Re: slash escaping (was 0.9.0 Release)
Date Thu, 11 Dec 2008 21:48:13 GMT
On Fri, Dec 12, 2008 at 08:13:19AM +1030, Antony Blakey wrote:
> 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.

Well, you could always return an error if truncation is needed.

I think doing the MD5 stuff is a little OTT.

Noah Slater,

View raw message