couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel MacDonald (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1568) update handler on _users always returns 409: update conflict
Date Thu, 18 Oct 2012 00:56:02 GMT
Daniel MacDonald created COUCHDB-1568:

             Summary: update handler on _users always returns 409: update conflict 
                 Key: COUCHDB-1568
             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
(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