incubator-couchdb-user mailing list archives

It's because we call mochiweb_util:unquote(Path) which replaces the +
for a space.
B.
On 29 October 2012 16:48, Jens Alfke <jens@couchbase.com> wrote:
>
> On Oct 29, 2012, at 1:26 AM, Sam Stainsby <sam@sustainablesoftware.com.au<mailto:sam@sustainablesoftware.com.au>>
wrote:
>
> How couch encodes that as a file name in an OS would be internal to
> couch, so if couch is using query string encoding for the file name, that
> may be a good choice for OS portability. However, my understanding is
> that '+' representing a space in a URL is only valid for the *query* part
> of a URL.
>
> Agreed — it should not be necessary to URL-encode “+” signs in the path portion
of a URL. Your URL refers to the database named “aaa+bbb”, not “aaa bbb”, so the request
should have succeeded. This sounds like a bug in CouchDB.
>
> —Jens