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 2021/05/28 12:12:15 UTC

[GitHub] [couchdb] Syedpash commented on issue #2881: Can't read/edit own Userinformation

Syedpash commented on issue #2881:
URL: https://github.com/apache/couchdb/issues/2881#issuecomment-850374585


   > So, I reinstalled Couchdb, created an Admin Account and created a user like this:
   > 
   > ```
   > curl -X PUT http://<admin>:<admin-password>@localhost:5984/_users/org.couchdb.user:jan \
   >      -d '{"name":"jan", "roles":[], "type":"user", "password":"apple"}'
   > > Succesfully creates user jan
   > ```
   > 
   > Then I tried to get its userinformation with the admin Account and:
   > 
   > ```
   > curl -X GET http://<admin>:<admin-password>@localhost:5984/_users/org.couchdb.user:jan
   > >  Succesfully  returns Userinformation of Jan
   > ```
   > 
   > So far so good. After that I tried to get the Userinformation of my own user
   > 
   > ```
   > curl -X GET http://jan:apple@localhost:5984/_users/org.couchdb.user:jan
   >  > returns: "You are not allowed to access this db."
   > ```
   > 
   > The specified username and password are correct if I intentionally type in a wrong Password i get following response:
   > 
   > ```
   > curl -X GET http://jan:wrongPasswordTest@localhost:5984/_users/org.couchdb.user:jan
   > > returns: "Name or password is incorrect.
   > ```
   
   Now Iam facing same problem, would you help me?


-- 
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