couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-2666) Degradation: inproper local database name escape on /_replicate
Date Sat, 18 Apr 2015 12:54:58 GMT
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)

Mime
View raw message