hamiltonsalazar opened a new issue #2908: URL: https://github.com/apache/couchdb/issues/2908
[NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ ) ## Description I followed the instructions in the documentation for [Users Public Information](https://docs.couchdb.org/en/stable/intro/security.html#users-public-information), but that don't work for me. [NOTE]: # ( Describe the problem you're encountering. ) [TIP]: # ( Do NOT give us access or passwords to your actual CouchDB! ) ## Current Behavior I shared the field "name". I set up the `public_fields` configuration option with the next command: > curl -X PUT http://localhost:5984/_node/nonode@nohost/_config/couch_httpd_auth/public_fields \ -H "Content-Type: application/json" \ -d '"name"' \ -u admin I modified this for using in Windows with mi user "epi": > `curl -X PUT http://localhost:5984/_node/couchdb@localhost/_config/couch_httpd_auth/public_fields -H "Content-Type: application/json" -d "\"name\"" -u epi` But when i check Jan’s document, CouchDB will respond with: `{"error":"unauthorized","reason":"You are not authorized to access this db."}` I have a user "jan" created in my database _users as can see below:  Also i have "name" in the `public_fields` configuration option.  [NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. ) ## Expected Behaviour When i request a user document with the command: > curl http://localhost:5984/_users/org.couchdb.user:jan CouchDB will respond with: `{"_id":"org.couchdb.user:jan","_rev":"2-724d8f9af35639db6d96504acda22a25","name":"jan"}` [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.1.0 * Operating system and version: Windows 10 Pro 1909 ---------------------------------------------------------------- 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: [email protected]
