You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/11/01 07:03:00 UTC

[jira] [Commented] (COUCHDB-1356) POST _session responds with name: null if _admin user and no _users doc present

    [ https://issues.apache.org/jira/browse/COUCHDB-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16233720#comment-16233720 ] 

ASF subversion and git services commented on COUCHDB-1356:
----------------------------------------------------------

Commit 53dcb010623b2b6672f1cf379906b800ab1e53a8 in couchdb's branch refs/heads/1.x.x from [~robertkowalski]
[ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=53dcb01 ]

Return username on POST to /_session

When logging in with admin credentials and no user doc is
present, the name was `null`. Example:

`{"ok":true,"name":null,"roles":["_admin"]}`

closes COUCHDB-1356


> POST _session responds with name: null if _admin user and no _users doc present
> -------------------------------------------------------------------------------
>
>                 Key: COUCHDB-1356
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1356
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.1.1, 2.0.0, 1.6.1
>            Reporter: Johannes J. Schmidt
>            Assignee: Robert Kowalski
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> When logging in with admin credentials (and no corresponding _users doc, if that is important), the response of the POST to _session has the name property set to null:
>   {"ok":true,"name":null,"roles":["_admin"]}
> It should be the name of the admin instead, like it does when logging in with a standard user:
>   {"ok":true,"name":"standarduser","roles":[]}
> Requesting the _session object after logging in with an admin, the name is proper set:
> {"ok":true,"userCtx":{"name":"adminuser","roles":["_admin"]},"info":{"authentication_db":"_users","authentication_handlers":["oauth","cookie","default"],"authenticated":"cookie"}}
> Johannes



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)