[
https://issues.apache.org/jira/browse/COUCHDB-411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849159#action_12849159
]
Matt Goodall commented on COUCHDB-411:
--------------------------------------
Looks like this is still happening or has been reintroduced since it was fixed.
$ curl -i http://localhost:5984/foo%2Fbar -X PUT
$ curl -i http://localhost:5984/foo%2Fbar -X POST -d {}
HTTP/1.1 201 Created
Server: CouchDB/0.11.0bf93cb9b-git (Erlang OTP/R13B)
Location: http://localhost:5984/foo/bar/5ad55bcc7fdb96f570aced786f001dec
Date: Wed, 24 Mar 2010 12:24:23 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 95
Cache-Control: must-revalidate
{"ok":true,"id":"5ad55bcc7fdb96f570aced786f001dec","rev":"1-967a00dff5e02add41819138abb3284d"}
$ curl -i http://localhost:5984/foo/bar/5ad55bcc7fdb96f570aced786f001dec
{"error":"not_found","reason":"no_db_file"}
> Unescaped database name in Location header in 201 response after document
> creation
> ----------------------------------------------------------------------------------
>
> Key: COUCHDB-411
> URL: https://issues.apache.org/jira/browse/COUCHDB-411
> Project: CouchDB
> Issue Type: Bug
> Components: HTTP Interface
> Affects Versions: 0.9
> Environment: Mac OS X 10.5.7 / CouchDBX-0.9.0-R13B
> Reporter: David Zülke
> Priority: Minor
> Fix For: 0.10
>
>
> I 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"}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.