couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bram Neijt <bne...@gmail.com>
Subject Re: Unable to delete empty key document
Date Mon, 15 Nov 2010 09:55:59 GMT
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.Breunese@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
> ------------------------------------------------------------------------
>

Mime
View raw message