You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Alexander Shorin (JIRA)" <ji...@apache.org> on 2015/04/18 14:54:58 UTC

[jira] [Created] (COUCHDB-2666) Degradation: inproper local database name escape on /_replicate

Alexander Shorin created COUCHDB-2666:
-----------------------------------------

             Summary: Degradation: 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


{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)