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 iannazzo (Created) (JIRA)" <ji...@apache.org> on 2012/03/27 23:26:27 UTC

[jira] [Created] (COUCHDB-1450) having a member of _users create new users does not work

having a member of _users create new users does not work
--------------------------------------------------------

                 Key: COUCHDB-1450
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1450
             Project: CouchDB
          Issue Type: Bug
    Affects Versions: 1.2
         Environment: ubuntu 11.10
            Reporter: paul iannazzo


instructions:

//create a server admin in futon {name:"paul",password:"password"}
//delete _users database
$.couch.signup({name:"admin"},"1")
//set _users security members names = ["admin"] via futon
//logout via futon
//login via futon as 'admin'
$.couch.signup({name:"user1"},"password",{success:function(){console.log(arguments)},error:function(){console.log(arguments)}})

//console output:
//PUT http://localhost:5984/_users/org.couchdb.user%3Auser1 404 (Object Not Found)
//XHR finished loading: "http://localhost:5984/_users/org.couchdb.user%3Auser1".
[404, "not_found", "missing"]

------------------------------------------------------------------------------------------------------------------------------------
_users validation function is not even called in this situation.
i was told that the below link is related to the problem
https://github.com/apache/couchdb/blob/master/src/couchdb/couch_users_db.erl#L40

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira