couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Holley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-2530) CouchDB 2.0 does not support POST requests to _changes
Date Fri, 26 Dec 2014 21:11:13 GMT
Will Holley created COUCHDB-2530:
------------------------------------

             Summary: CouchDB 2.0 does not support POST requests to _changes
                 Key: COUCHDB-2530
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2530
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
            Reporter: Will Holley


In CouchDB 1.6, the _changes feed accepts a POST request (e.g. to submit a large doc_ids parameter):

{code}
curl http://127.0.0.1:5984/testdb/_changes -XPOST -H"Content-Type:application/json" -d '{"doc_ids":["1"]}'
{"results":[
{"seq":1,"id":"1","changes":[{"rev":"1-967a00dff5e02add41819138abb3284d"}]}
],
"last_seq":1}
{code}

In CouchDB 2.0, this fails with a "405 Method Not Allowed" response:

{code}
curl http://127.0.0.1:15984/testdb/_changes -XPOST -H"Content-Type:application/json" -d '{"doc_ids":["1"]}'
{"error":"method_not_allowed","reason":"Only GET,HEAD allowed"}
{code}



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

Mime
View raw message