CouchDB
  1. CouchDB
  2. COUCHDB-1450

having a member of _users create new users does not work

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      ubuntu 11.10

    • Skill Level:
      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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            paul iannazzo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

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

                Development