Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2297B9339 for ; Wed, 25 Apr 2012 03:29:00 +0000 (UTC) Received: (qmail 83130 invoked by uid 500); 25 Apr 2012 03:28:59 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 83094 invoked by uid 500); 25 Apr 2012 03:28:59 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 83082 invoked by uid 99); 25 Apr 2012 03:28:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 03:28:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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, 25 Apr 2012 03:28:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B525B40DF98 for ; Wed, 25 Apr 2012 03:28:37 +0000 (UTC) Date: Wed, 25 Apr 2012 03:28:37 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <387005356.1425.1335324517944.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <430293862.779.1335309847215.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-8314) HttpServer#hasAdminAccess should return false if authorization is enabled but user is not authenticated 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/HADOOP-8314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261265#comment-13261265 ] Hudson commented on HADOOP-8314: -------------------------------- Integrated in Hadoop-Common-trunk-Commit #2128 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2128/]) HADOOP-8314. HttpServer#hasAdminAccess should return false if authorization is enabled but user is not authenticated. (tucu) (Revision 1330086) Result = SUCCESS tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1330086 Files : * /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer.java * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java > HttpServer#hasAdminAccess should return false if authorization is enabled but user is not authenticated > ------------------------------------------------------------------------------------------------------- > > Key: HADOOP-8314 > URL: https://issues.apache.org/jira/browse/HADOOP-8314 > Project: Hadoop Common > Issue Type: Bug > Components: security > Affects Versions: 2.0.0, 3.0.0 > Reporter: Alejandro Abdelnur > Assignee: Alejandro Abdelnur > Fix For: 2.0.0 > > Attachments: HADOOP-8314.patch, HADOOP-8314.patch > > > If the user is not authenticated (request.getRemoteUser() returns NULL) or there is not authentication filter configured (thus returning also NULL), hasAdminAccess should return false. Note that a filter could allow anonymous access, thus the first case. -- 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