couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes J. Schmidt (Commented) (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1356) POST _session responds with name: null if _admin user and no _users doc present
Date Wed, 07 Dec 2011 08:06:39 GMT


Johannes J. Schmidt commented on COUCHDB-1356:

But then why is the name not null when issuing a GET request to _session like I mentioned
I believe the POST response should be according to the GET response.

Btw. the couch I query is not in Admin Party mode.
> POST _session responds with name: null if _admin user and no _users doc present
> -------------------------------------------------------------------------------
>                 Key: COUCHDB-1356
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: Johannes J. Schmidt
>            Priority: Minor
> 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
>   {"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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message