Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 89156 invoked from network); 9 Oct 2010 19:46:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Oct 2010 19:46:36 -0000 Received: (qmail 64607 invoked by uid 500); 9 Oct 2010 19:46:15 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 64545 invoked by uid 500); 9 Oct 2010 19:46:15 -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 64511 invoked by uid 99); 9 Oct 2010 19:46:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 19:46:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 19:46:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o99Jjqef017167 for ; Sat, 9 Oct 2010 19:45:52 GMT Message-ID: <13819184.58441286653552781.JavaMail.jira@thor> Date: Sat, 9 Oct 2010 15:45:52 -0400 (EDT) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-675) Using _bulk_docs to delete a missing document gives success response In-Reply-To: <937116881.559091267205007879.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Joseph Davis updated COUCHDB-675: -------------------------------------- Skill Level: Regular Contributors Level (Easy to Medium) > 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.