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

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

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

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: Alexander Shorin
>            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