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/01/31 21:58:35 UTC

[jira] [Updated] (COUCHDB-2530) CouchDB 2.0 does not support POST requests to _changes

     [ https://issues.apache.org/jira/browse/COUCHDB-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Shorin updated COUCHDB-2530:
--------------------------------------
    Component/s: HTTP Interface

> 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) 
>          Components: HTTP Interface
>            Reporter: Will Holley
>             Fix For: 2.0.0
>
>
> 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?filter=_doc_ids -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?filter=_doc_ids -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)