couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul iannazzo (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-1450) having a member of _users create new users does not work
Date Tue, 27 Mar 2012 21:26:27 GMT
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

        

Mime
View raw message