Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 66158 invoked from network); 26 Feb 2010 17:11:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2010 17:11:49 -0000 Received: (qmail 60536 invoked by uid 500); 26 Feb 2010 17:11:48 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 60453 invoked by uid 500); 26 Feb 2010 17:11:48 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 60426 invoked by uid 99); 26 Feb 2010 17:11:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 17:11:48 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 17:11:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E19F8234C48C for ; Fri, 26 Feb 2010 09:11:27 -0800 (PST) Message-ID: <292036719.558801267204287922.JavaMail.jira@brutus.apache.org> Date: Fri, 26 Feb 2010 17:11:27 +0000 (UTC) From: "Matt Goodall (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-674) Inconsistent error response, DELETE vs _bulk_docs deleted=true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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.