Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 21364 invoked from network); 15 Nov 2010 09:55:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Nov 2010 09:55:59 -0000 Received: (qmail 66822 invoked by uid 500); 15 Nov 2010 09:56:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 66578 invoked by uid 500); 15 Nov 2010 09:56:29 -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 66564 invoked by uid 99); 15 Nov 2010 09:56:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 09:56:28 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bneijt@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 09:56:21 +0000 Received: by qyl33 with SMTP id 33so4736939qyl.11 for ; Mon, 15 Nov 2010 01:56:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=bPjztTbCA9NGwtjdf6tw95LLhHQcujEh8x9wpGzZzZ4=; b=m2z7Eb0pIBeFhTmup7O/hYgIDYtYtpPKrVhOCvRobJsb1C79M0UMJY0nS8sJ1AMg+v HNg2tzy1zy6mJbu6m2Zo2AJhgWBvzY60f1uUFtmEiPhiaHfPk+wqaibKfbrK6ciakGoe TUO9FVxsr0cHBHATTzHZQsKk4AFwJNTBOR9dg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=C7ysxMhN2WE7BLcsbNrzWtupyzMO9wiN23Si5p6cvL3pWW+5qOtgtwDjb3ILrSxT9R j2CyRR8yXnV8C0DNm1DWAgKR6m8aWIZ1kM6PptNapZRrU0EmWbyxmLNgCf85fYTLtJ7o qZomb+8KrSvDzfPhYU5lRNyppJZA34zicLSHg= MIME-Version: 1.0 Received: by 10.229.246.145 with SMTP id ly17mr5129776qcb.11.1289814960037; Mon, 15 Nov 2010 01:56:00 -0800 (PST) Received: by 10.229.102.86 with HTTP; Mon, 15 Nov 2010 01:55:59 -0800 (PST) In-Reply-To: References: <4CC0100E.3010101@gmail.com> Date: Mon, 15 Nov 2010 10:55:59 +0100 Message-ID: Subject: Re: Unable to delete empty key document From: Bram Neijt To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org How did you get the empty id document in CouchDB? Or is the _id =3D "\"\"" and not really empty? On Tue, Oct 26, 2010 at 10:57 AM, Nils Breunese wrote: > Alex Ivasyuv wrote: > >> I found an issue? in Futon, when there exist an record with empty key >> (""), it's unable to delete it. >> Record looks like: >> "" =A0 =A0 =A0 =A0 =A0 =A0 {rev: "1-8d76c8a85c9ad91083a200bf86e64c6a"} >> >> But from command like when you try to delete it, it'll delete entire >> your db! >> $ curl -X DELETE http://localhost:5984/mydb/"" -d {rev: >> 1-8d76c8a85c9ad91083a200bf86e64c6a} > > Your shell probably ignores that empty string and therefor you're actuall= y sending a delete for the database. > > Nils. > ------------------------------------------------------------------------ > =A0VPRO > =A0phone: =A0+31(0)356712911 > =A0e-mail: info@vpro.nl > =A0web: =A0 =A0www.vpro.nl > ------------------------------------------------------------------------ >