couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Hendricks <>
Subject bulk update: deleting and updating
Date Wed, 03 Dec 2008 16:39:44 GMT
What should be the proper behavior for a bulk update request which
asks to delete a document and to update it at the same time?  For

    Accept: application/json
    Content-Length: 104


Until recently (r713132), CouchDB returned a 412 response to indicate
that there was a conflict.  That seems like the right thing to do.
The new response seems broken:

    HTTP/1.1 201 Created
    Cache-Control: must-revalidate
    Date: Wed, 03 Dec 2008 16:24:15 GMT
    Server: CouchDB/0.9.0a-incubating (Erlang OTP/R12B)
    Content-Length: 89
    Content-Type: application/json
    Client-Date: Wed, 03 Dec 2008 16:24:15 GMT
    Client-Response-Num: 15


In other words, it created two new revisions for the same document.
Is that intended behavior?


View raw message