hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuen-Kuei Hsueh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-15455) Incorrect debug message in KMSACL#hasAccess
Date Mon, 14 May 2018 05:54:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-15455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yuen-Kuei Hsueh updated HADOOP-15455:
-------------------------------------
    Affects Version/s: 3.1.0

> Incorrect debug message in KMSACL#hasAccess
> -------------------------------------------
>
>                 Key: HADOOP-15455
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15455
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Wei-Chiu Chuang
>            Assignee: Yuen-Kuei Hsueh
>            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