couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: No escaping of database names in Location headers after creating documents
Date Sun, 12 Jul 2009 17:09:27 GMT
This is a bug, can you open an issue?

Cheers
Jan
--

On 12 Jul 2009, at 17:14, David Z├╝lke wrote:

> Hi there,
>
> just did a PUT on /test_suite_db%2Fwith_slashes/ to create a new  
> document, and the Location header in the 201 Created response had a  
> literal slash in the database name instead; the resulting URL of  
> course yields a 404:
>
>> POST /test_suite_db%2Fwith_slashes/ HTTP/1.0
>> Host: localhost:5984
>> User-Agent: PHPCouch/1.0.0-dev
>> Accept: */*, application/json
>> Content-Length: 13
>> Content-Type: application/json
>>
>> {"foo":"bar"}
>
>> HTTP/1.0 201 Created
>> Server: CouchDB/0.9.0 (Erlang OTP/R13B)
>> Location: http://localhost:5984/test_suite_db/with_slashes/d578ca758745a89add2c369695fcd9ec
>> Date: Sun, 12 Jul 2009 15:10:08 GMT
>> Content-Type: application/json
>> Content-Length: 73
>> Cache-Control: must-revalidate
>>
>> {"ok 
>> ":true,"id":"d578ca758745a89add2c369695fcd9ec","rev":"1-1120917420"}
>
>
> Just wanted to make sure that that issue is not yet known before  
> filing a ticket (I didn't find anything in JIRA so far).
>
> Cheers,
>
> - David
>


Mime
View raw message