couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glynn Bird (JIRA)" <>
Subject [jira] [Created] (COUCHDB-2538) GET /db/doc?open_revs={} produces unsual response in CouchDB 2.0
Date Fri, 09 Jan 2015 14:46:34 GMT
Glynn Bird created COUCHDB-2538:

             Summary: GET /db/doc?open_revs={} produces unsual response in CouchDB 2.0
                 Key: COUCHDB-2538
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Database Core
            Reporter: Glynn Bird

In CouchDB 1.6, if you call

/db/doc?open_revs={}, (i.e. an invalid open_revs parameter) the following response arrives:

error: "unknown_error",
reason: "function_clause"

but in CouchDB 2.0, we get the following response:

error: "function_clause",
reason: null,
ref: 2708187554

* the error message is different
* the 'reason' field as switched to the 'error' field

This was spotted by going through the breaking PouchDB automated tests.

This message was sent by Atlassian JIRA

View raw message