You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Danielo Rodríguez Rivero (JIRA)" <ji...@apache.org> on 2016/08/25 15:30:20 UTC

[jira] [Created] (COUCHDB-3108) Putting a new document with a _rev field should not return a 409

Danielo Rodríguez Rivero created COUCHDB-3108:
-------------------------------------------------

             Summary: Putting a new document with a _rev field should not return a 409
                 Key: COUCHDB-3108
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3108
             Project: CouchDB
          Issue Type: Bug
            Reporter: Danielo Rodríguez Rivero


When you try to put a new document with an invalid revision field (this could happen for several reasons, being one of them making a "copy" of a document) Couch returns a 409 error. This error is misleading because there is no actual conflict, is just an invalid usage of the put method. To differentiate between actual conflicts and invalid usages you have to perform a get petition and listen for a 404 error, which could be resource consuming. It would be useful to return an specific error for this kind of situation.



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