[ 
https://issues.apache.org/jira/browse/COUCHDB-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14969644#comment-14969644
 ] 

ASF subversion and git services commented on COUCHDB-2666:
----------------------------------------------------------

Commit 895715a6adf317a7b2f25dc54b0ce7eb1191c8ff in couchdb-chttpd's branch 
refs/heads/master from [~kxepal]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=895715a ]

Escape database name on POST /_replicate

COUCHDB-2666


> Regression: inproper local database name escape on /_replicate
> --------------------------------------------------------------
>
>                 Key: COUCHDB-2666
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2666
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: HTTP Interface, Replication
>            Reporter: Alexander Shorin
>            Assignee: ILYA
>            Priority: Blocker
>              Labels: regression
>             Fix For: 2.0.0
>
>
> {code}
> $ curl -XPUT http://localhost:15984/foo%2fbar
> {"ok":true}
> $ curl -XPOST http://localhost:15984/_replicate -d '{"source": "foo/bar", 
> "target": "baz", "create_target": true}' -H "Content-Type: application/json"
> {"error":"db_not_found","reason":"could not open 
> http://127.0.0.1:15984/foo/bar/"}
> {code}
> Meanwhile in 1.6.1:
> {code}
> $ curl -XPUT http://localhost:5984/foo%2fbar
> {"ok":true}
> $ curl -XPOST http://localhost:5984/_replicate -d '{"source": "foo/bar", 
> "target": "baz", "create_target": true}' -H "Content-Type: application/json"
> {"ok":true,"no_changes":true}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to