[
https://issues.apache.org/jira/browse/COUCHDB-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14969645#comment-14969645
]
ASF GitHub Bot commented on COUCHDB-2666:
-----------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/couchdb-chttpd/pull/84
> 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)