couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Cottlehuber (JIRA)" <>
Subject [jira] [Closed] (COUCHDB-1568) update handler on _users always returns 409: update conflict
Date Wed, 24 Oct 2012 21:26:12 GMT


Dave Cottlehuber closed COUCHDB-1568.

> update handler on _users always returns 409: update conflict 
> -------------------------------------------------------------
>                 Key: COUCHDB-1568
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.2
>            Reporter: Daniel MacDonald
>            Priority: Minor
> Adding a trivial update handler to separate design doc on _users on my local install
and attempting to PUT to it always gives me a conflict error. If there is an explicit prohibition
on the use of _design docs in _users, it isn't documented anywhere I could find. I know that
_design/auth is always overwritten on startup, so I created another document _design/helpers
to encapsulate some mucking about with roles I wanted to do.
> $ curl -X GET  http://admin:pw@proxy.couchdb:5984/_users/_design/helpers
> {"_id":"_design/helpers","_rev":"29-f4666ed8cddf8eba77167b1de3f71f7d","updates":{"add_user_role":"function
(doc,req) { return [doc, null]; }"}}
> $ curl -X PUT http://admin:pw@proxy.couchdb:5984/_users/_design/helpers/add_user_role/
> {"error":"conflict","reason":"Document update conflict."}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message