couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: literal '+' in URL when creaitng a database
Date Mon, 29 Oct 2012 17:07:37 GMT
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

Mime
View raw message