couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-2530) CouchDB 2.0 does not support POST requests to _changes
Date Sat, 31 Jan 2015 10:54:34 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299756#comment-14299756
] 

ASF GitHub Bot commented on COUCHDB-2530:
-----------------------------------------

GitHub user willholley opened a pull request:

    https://github.com/apache/couchdb-chttpd/pull/22

    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.
    
    COUCHDB-2530

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/willholley/couchdb-chttpd 2530-changes-does-not-support-post

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-chttpd/pull/22.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #22
    
----
commit 8f94e87671d9a57ab845d7536540b97b5e5e2b60
Author: Will Holley <willholley@gmail.com>
Date:   2015-01-31T10:46:30Z

    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.
    
    COUCHDB-2530

----


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

Mime
View raw message