Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 208717F21 for ; Wed, 7 Dec 2011 08:07:05 +0000 (UTC) Received: (qmail 10781 invoked by uid 500); 7 Dec 2011 08:07:04 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 10637 invoked by uid 500); 7 Dec 2011 08:07:04 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 10585 invoked by uid 99); 7 Dec 2011 08:07:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 08:07:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 08:07:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E5399103696 for ; Wed, 7 Dec 2011 08:06:39 +0000 (UTC) Date: Wed, 7 Dec 2011 08:06:39 +0000 (UTC) From: "Johannes J. Schmidt (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1071709774.48665.1323245199940.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1819891110.46330.1323196779964.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1356) POST _session responds with name: null if _admin user and no _users doc present MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164225#comment-13164225 ] 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 above? 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: https://issues.apache.org/jira/browse/COUCHDB-1356 > 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 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira