Daniel MacDonald created COUCHDB-1568:
-----------------------------------------

             Summary: update handler on _users always returns 409: update 
conflict 
                 Key: COUCHDB-1568
                 URL: https://issues.apache.org/jira/browse/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:[email protected]: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:[email protected]:5984/_users/_design/helpers/add_user_role/org.couchdb.user:[email protected]
{"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: http://www.atlassian.com/software/jira

Reply via email to