You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Paul Joseph Davis (JIRA)" <ji...@apache.org> on 2010/10/09 03:19:19 UTC

[jira] Updated: (COUCHDB-674) Inconsistent error response, DELETE vs _bulk_docs deleted=true

     [ https://issues.apache.org/jira/browse/COUCHDB-674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-674:
--------------------------------------

    Skill Level: New Contributors Level (Easy)

> Inconsistent error response, DELETE vs _bulk_docs deleted=true
> --------------------------------------------------------------
>
>                 Key: COUCHDB-674
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-674
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>            Reporter: Matt Goodall
>
> The result from deleting an already deleted document using an HTTP DELETE and a _bulk_docs {"deleted": true} is not consistent.
> $ curl http://localhost:5984/scratch/foo -X PUT -d '{}'
> {"ok":true,"id":"foo","rev":"1-967a00dff5e02add41819138abb3284d"}
> $ curl http://localhost:5984/scratch/foo?rev=1-967a00dff5e02add41819138abb3284d -X DELETE
> {"ok":true,"id":"foo","rev":"2-eec205a9d413992850a6e32678485900"}
> $ curl http://localhost:5984/scratch/foo?rev=1-967a00dff5e02add41819138abb3284d -X DELETE
> {"error":"not_found","reason":"deleted"}
> $ curl http://localhost:5984/scratch/_bulk_docs -X POST -d '{"docs": [{"_id": "foo", "_rev": "1-967a00dff5e02add41819138abb3284d", "_deleted": true}]}'
> [{"id":"foo","error":"conflict","reason":"Document update conflict."}]

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