[
https://issues.apache.org/jira/browse/COUCHDB-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299983#comment-14299983
]
ASF subversion and git services commented on COUCHDB-2530:
----------------------------------------------------------
Commit 6bfa947ffd9ec083c66b103d06e0f91a58eb8ba3 in couchdb-chttpd's branch
refs/heads/master from [~wilhol]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=6bfa947 ]
Enable POST requests to /_changes in clustered CouchDB
Appropriate handling of a POST to _changes is already in place in
single node CouchDB. In clustered CouchDB, allow POST requests to pass
through to the underlying handler and existing logic will do the rest.
This closes #22
COUCHDB-2530
Signed-off-by: Alexander Shorin <[email protected]>
> 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?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)