Will Holley created COUCHDB-2531:
------------------------------------

             Summary: CouchDB 2.0: POST to /_revs_diff with no revisions times 
out
                 Key: COUCHDB-2531
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2531
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
            Reporter: Will Holley


In CouchDB 1.6, posting an empty object to the _revs_diff endpoint returns an 
empty object:
{code}
$ curl http://127.0.0.1:5984/revsdifftest -XPUT                                 
                                                                        
{"ok":true}
$ curl http://127.0.0.1:5984/revsdifftest/_revs_diff -XPOST 
-H"Content-Type:application/json" -d"{}"
{}
{code}

In CouchDB 2.0, the same request results in a timeout:
{code}
$ curl http://127.0.0.1:15984/revsdifftest -XPUT                                
                                                                         
{"ok":true}
$ curl http://127.0.0.1:15984/revsdifftest/_revs_diff -XPOST 
-H"Content-Type:application/json" -d"{}"
{"error":"badmatch","reason":"{error,timeout}","ref":1478668763}
{code}

This currently breaks the PouchDB test suite when running against CouchDB 
master.



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

Reply via email to