You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by sgoto <sa...@gmail.com> on 2010/08/25 23:41:03 UTC

using _delete = true with PUT to delete documents and query servers

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 ?

    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 !

Re: using _delete = true with PUT to delete documents and query servers

Posted by sgoto <sa...@gmail.com>.
On Wed, Aug 25, 2010 at 3:09 PM, J Chris Anderson <jc...@gmail.com> wrote:

>
> 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.
>
>
that's great to hear chris! thanks!


> 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 !
>
>


-- 
f u cn rd ths u cn b a gd prgmr !

Re: using _delete = true with PUT to delete documents and query servers

Posted by J Chris Anderson <jc...@gmail.com>.
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 !