couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <jch...@gmail.com>
Subject Re: using _delete = true with PUT to delete documents and query servers
Date Wed, 25 Aug 2010 22:09:54 GMT

On Aug 25, 2010, at 2:41 PM, sgoto wrote:

> hey everyone,
> 
>    in some versions of couchdb (1.0.1), sending a PUT request with the
> document containing a  _delete = true field deletes the document and sends
> the full doc json to query server validators. however, in some versions
> (1.0.0 - which i know i shouldn't be using anyway, but just for the purpose
> of the example) it doesn't send the full doc to query server validators (it
> only sends _id, _rev and _deleted).
> 
>    is there an official word on what's the contract between query server
> validators and deletes ?
> 

this was a bug in 1.0.0 that was fixed in 1.0.1. The full doc on delete will always be available
in future versions.

Chris

>    long version: I need the full document on _delete because I'm PGP
> signing it to validate the delete. I can't rely on user auth because it
> needs to be replicated to untrusted couchdb nodes (and hence needs to have
> per doc auth).
> 
>    ideas ?
> 
>    sam
> 
> -- 
> f u cn rd ths u cn b a gd prgmr !


Mime
View raw message