{"action":"created","issue":{"url":"https://api.github.com/repos/apache/couchdb/issues/604","repository_url":"https://api.github.com/repos/apache/couchdb","labels_url":"https://api.github.com/repos/apache/couchdb/issues/604/labels{/name}","comments_url":"https://api.github.com/repos/apache/couchdb/issues/604/comments","events_url":"https://api.github.com/repos/apache/couchdb/issues/604/events","html_url":"https://github.com/apache/couchdb/issues/604","id":237280971,"number":604,"title":"{\"error\":\"unauthorized\",\"reason\":\"Name or password is incorrect.\"} even if access is granted to user","user":{"login":"inceptivetech","id":10934140,"avatar_url":"https://avatars3.githubusercontent.com/u/10934140?v=3","gravatar_id":"","url":"https://api.github.com/users/inceptivetech","html_url":"https://github.com/inceptivetech","followers_url":"https://api.github.com/users/inceptivetech/followers","following_url":"https://api.github.com/users/inceptivetech/following{/other_user}","gists_url":"https://api.github.com/users/inceptivetech/gists{/gist_id}","starred_url":"https://api.github.com/users/inceptivetech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inceptivetech/subscriptions","organizations_url":"https://api.github.com/users/inceptivetech/orgs","repos_url":"https://api.github.com/users/inceptivetech/repos","events_url":"https://api.github.com/users/inceptivetech/events{/privacy}","received_events_url":"https://api.github.com/users/inceptivetech/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-20T17:04:54Z","updated_at":"2017-06-20T21:42:35Z","closed_at":"2017-06-20T21:42:35Z","body":"I was following the authorization topic mentioned in below link\r\nhttp://docs.couchdb.org/en/2.0.0/intro/security.html\r\ncreated an user using endpoints port 5986, then executed APIs as per documentation for e.g.\r\ncurl -X PUT http://localhost:5984/eventdb/_security  -u admin:*****   -H \"Content-Type: application/json\"  -d '{\"admins\": { \"names\": [], \"roles\": [] }, \"members\": { \"names\": [\"fan\"], \"roles\": [] } }'\r\nplease note password is hidden for obvious purpose\r\n\r\nwhich returns below result for me\r\n\r\n{\"ok\":true}\r\n\r\nNow when I tried to access database using below api\r\n\r\ncurl -u fan:apple http://localhost:5984/eventdb\r\n\r\nit results below response for me\r\n{\"error\":\"unauthorized\",\"reason\":\"Name or password is incorrect.\"}\r\n\r\nI am pretty much sure about name and password here.\r\n\r\nI am novice to couchdb however believe that porting _users to 5986 might have resulted this issue\r\n\r\nPlease note I am using couchdb 2.0.0\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/couchdb/issues/comments/309900359","html_url":"https://github.com/apache/couchdb/issues/604#issuecomment-309900359","issue_url":"https://api.github.com/repos/apache/couchdb/issues/604","id":309900359,"user":{"login":"wohali","id":112292,"avatar_url":"https://avatars1.githubusercontent.com/u/112292?v=3","gravatar_id":"","url":"https://api.github.com/users/wohali","html_url":"https://github.com/wohali","followers_url":"https://api.github.com/users/wohali/followers","following_url":"https://api.github.com/users/wohali/following{/other_user}","gists_url":"https://api.github.com/users/wohali/gists{/gist_id}","starred_url":"https://api.github.com/users/wohali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wohali/subscriptions","organizations_url":"https://api.github.com/users/wohali/orgs","repos_url":"https://api.github.com/users/wohali/repos","events_url":"https://api.github.com/users/wohali/events{/privacy}","received_events_url":"https://api.github.com/users/wohali/received_events","type":"User","site_admin":false},"created_at":"2017-06-20T21:42:35Z","updated_at":"2017-06-20T21:42:35Z","body":"This is not a bug.\r\n\r\nYou should be doing everything with CouchDB using port 5984. The only thing that should be done via port 5986 is cluster setup tasks as explicitly outlined in our documentation."}}
{"actor":{"display_login":"wohali"}}