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 <[email protected]> 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: [email protected] > web: www.vpro.nl > ------------------------------------------------------------------------ >
