incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils Breunese <N.Breun...@vpro.nl>
Subject Re: Unable to delete empty key document
Date Tue, 26 Oct 2010 08:57:44 GMT
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