You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Paul Joseph Davis (JIRA)" <ji...@apache.org> on 2010/10/09 21:46:00 UTC

[jira] Updated: (COUCHDB-605) _update handler doesn't conflict for existing document

     [ https://issues.apache.org/jira/browse/COUCHDB-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-605:
--------------------------------------

    Skill Level: Regular Contributors Level (Easy to Medium)

> _update handler doesn't conflict for existing document
> ------------------------------------------------------
>
>                 Key: COUCHDB-605
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-605
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 0.10
>         Environment: Ubuntu Karmic, in particular it's CouchDB version 0.10.0-0ubuntu3
>            Reporter: Sergey Shepelev
>            Assignee: Chris Anderson
>
> design doc:
> "updates": {
>        "hello": "function(doc, req) { doc.value = 100500; return [doc, 'foo bar']; }"
>    }
> $ curl -X PUT --data-binary @- http://localhost:5984/shkaf/client:foo << EOF
> > {"_id":"client:foo"}
> > EOF
> {"ok":true,"id":"client:foo","rev":"1-967a00dff5e02add41819138abb3284d"}
> $ curl -X PUT --data-binary @- http://localhost:5984/shkaf/_design/client/_update/hello/client:foo?A=B << EOF
> > {"_id": "client:foo"}
> > EOF
> foo bar
> And it really updated the document.
> What i expected here is error: conflict because document with such _id already existed and i didn't provide _rev to _update handler.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.