Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15455

Incorrect debug message in KMSACL#hasAccess

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
      None

      Description

      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"

      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());
              }
            }
          }
      

        Attachments

        1. HADOOP-15455.001.patch
          0.9 kB
          Wei-Chiu Chuang

          Issue Links

            Activity

              People

              • Assignee:
                study Yuen-Kuei Hsueh
                Reporter:
                jojochuang Wei-Chiu Chuang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: