couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Goodall (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-675) Using _bulk_docs to delete a missing document gives success response
Date Fri, 26 Feb 2010 17:23:27 GMT
Using _bulk_docs to delete a missing document gives success response
--------------------------------------------------------------------

                 Key: COUCHDB-675
                 URL: https://issues.apache.org/jira/browse/COUCHDB-675
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core
            Reporter: Matt Goodall


Deleting a non-existant document using _bulk_docs should return not_found but instead appears
to work, returning a "1-xxx" deletion rev. The deletion even appears in the changes.

$ curl http://localhost:5984/scratch -X PUT
{"ok":true}
$ curl http://localhost:5984/scratch/_bulk_docs -X POST -d '{"docs": [{"_id": "foo", "_deleted":
true}]}'
[{"id":"foo","rev":"1-de715bf126efc93d225d9e3f8e8eb81a"}]
$ curl http://localhost:5984/scratch/_changes
{"results":[
{"seq":1,"id":"foo","changes":[{"rev":"1-de715bf126efc93d225d9e3f8e8eb81a"}],"deleted":true}
],
"last_seq":1}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message