You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Bram Neijt <bn...@gmail.com> on 2010/11/15 10:55:59 UTC
Re: Unable to delete empty key document
How did you get the empty id document in CouchDB? Or is the _id =
"\"\"" and not really empty?
On Tue, Oct 26, 2010 at 10:57 AM, Nils Breunese <N....@vpro.nl> 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:
>> "" {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 actually sending a delete for the database.
>
> Nils.
> ------------------------------------------------------------------------
> VPRO
> phone: +31(0)356712911
> e-mail: info@vpro.nl
> web: www.vpro.nl
> ------------------------------------------------------------------------
>
Re: Unable to delete empty key document
Posted by Luciano Ramalho <lu...@ramalho.org>.
On Mon, Nov 15, 2010 at 7:55 AM, Bram Neijt <bn...@gmail.com> wrote:
> How did you get the empty id document in CouchDB? Or is the _id =
> "\"\"" and not really empty?
Another guess: perhaps the key is something that the HTML interface of
Futon will not display. For example, a key which looks like a tag
<FOO> will not be shown by the browser, unless you look at the source
code of the page.
I'd take a look at the HTML source code of the Futon page displaying the record.
--
Luciano Ramalho
programador repentista || stand-up programmer
Twitter: @luciano