You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/04/13 15:15:31 UTC

[GitHub] [couchdb] Ti-webdev opened a new issue #2782: Create new user is broken

Ti-webdev opened a new issue #2782: Create new user is broken
URL: https://github.com/apache/couchdb/issues/2782
 
 
   [NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ )
   
   ## Description
   When I try to create new user it does not work.
   https://docs.couchdb.org/en/stable/intro/security.html#creating-a-new-user
   
   [NOTE]: # ( Describe the problem you're encountering. )
   [TIP]:  # ( Do NOT give us access or passwords to your actual CouchDB! )
   
   ## Steps to Reproduce
   1. CouchDB 3.0 in Docker
   2. Setup Single Node
   3. Create user
   ```
   curl -X PUT http://localhost:5984/_users/org.couchdb.user:jan \
        -H "Accept: application/json" \
        -H "Content-Type: application/json" \
        -d '{"name": "jan", "password": "apple", "roles": [], "type": "user"}'
   ```
   
   We got an error 401 Unauthorized:
   ```
   {
       "error": "unauthorized",
       "reason": "You are not authorized to access this db."
   }
   ```
   
   [NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. )
   
   ## Expected Behaviour
   ```
   {"ok":true,"id":"org.couchdb.user:jan","rev":"1-c3dade72a0a493f5377cef9341ea6710"}
   ```
   
   [NOTE]: # ( Tell us what you expected to happen. )
   
   ## Your Environment
   
   [TIP]:  # ( Include as many relevant details about your environment as possible. )
   [TIP]:  # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
   
   * CouchDB version used: 3.0
   * Browser name and version: curl
   * Operating system and version: Linux
   
   ## Additional Context
   
   [TIP]:  # ( Add any other context about the problem here. )
   Change [couch_httpd_auth] users_db_public to true does not make any effects.
    

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services