Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1450

having a member of _users create new users does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.2
    • None
    • None
    • ubuntu 11.10

    • Regular Contributors Level (Easy to Medium)

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            boxie paul iannazzo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified