hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-15455) Incorrect debug message in KMSACL#hasAccess
Date Thu, 10 May 2018 22:31:00 GMT

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

ASF GitHub Bot commented on HADOOP-15455:
-----------------------------------------

Github user phstudy commented on the issue:

    https://github.com/apache/hadoop/pull/385
  
    @jojochuang My Apache Jira username is `study`. Thanks.


> Incorrect debug message in KMSACL#hasAccess
> -------------------------------------------
>
>                 Key: HADOOP-15455
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15455
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Wei-Chiu Chuang
>            Priority: Trivial
>
> If the user is in the blacklist "foo bar", it prints "user is not in foo bar".
> else, it prints "user is in foo bar"
> {code:title=KMSACLs#hasAccess()}
> if (access) {
>       AccessControlList blacklist = blacklistedAcls.get(type);
>       access = (blacklist == null) || !blacklist.isUserInList(ugi);
>       if (LOG.isDebugEnabled()) {
>         if (blacklist == null) {
>           LOG.debug("No blacklist for {}", type.toString());
>         } else if (access) {
>           LOG.debug("user is in {}" , blacklist.getAclString());
>         } else {
>           LOG.debug("user is not in {}" , blacklist.getAclString());
>         }
>       }
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message