Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 41E437A6C for ; Thu, 14 Jul 2011 13:19:26 +0000 (UTC) Received: (qmail 54574 invoked by uid 500); 14 Jul 2011 13:19:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 54341 invoked by uid 500); 14 Jul 2011 13:19:23 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 54328 invoked by uid 99); 14 Jul 2011 13:19:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 13:19:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 13:19:15 +0000 Received: by iwn9 with SMTP id 9so345818iwn.11 for ; Thu, 14 Jul 2011 06:18:54 -0700 (PDT) Received: by 10.42.71.78 with SMTP id i14mr2311030icj.364.1310649533116; Thu, 14 Jul 2011 06:18:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.178.68 with HTTP; Thu, 14 Jul 2011 06:18:33 -0700 (PDT) In-Reply-To: References: From: Jason Smith Date: Thu, 14 Jul 2011 20:18:33 +0700 Message-ID: Subject: Re: How to delete doc with empty string _id To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jul 14, 2011 at 4:24 PM, sleepnova wrote: > I was updating my doc through update handler. > Since the URL has _id in the end, I try to save bandwidth by not > passing doc._id. > I though it would automatically insert that for me, but I'm wrong. Is there a JIRA ticket for this? I remember seeing this a year ago, an update handler can create a document with id "" however nothing can delete it. I thought it was fixed for 1.0.2 or 1.1.0 however perhaps I am wrong. The workaround is to set doc._id = req.uuid, which is a random UUID couch creates for each HTTP query. Deleting that document? I'm not sure off the top of my head. Still thinking. -- Iris Couch