huaxiang sun created HBASE-15627:
------------------------------------

             Summary:  Miss space and closing quote in 
AccessController#checkSystemOrSuperUser
                 Key: HBASE-15627
                 URL: https://issues.apache.org/jira/browse/HBASE-15627
             Project: HBase
          Issue Type: Bug
          Components: security
    Affects Versions: 2.0.0
            Reporter: huaxiang sun
            Assignee: huaxiang sun
            Priority: Minor


 Miss space and closing quote in AccessController#checkSystemOrSuperUser

{code}
  private void checkSystemOrSuperUser() throws IOException {
    // No need to check if we're not going to throw
    if (!authorizationEnabled) {
      return;
    }
    User activeUser = getActiveUser();
    if (!Superusers.isSuperUser(activeUser)) {
    //***, miss closing ' and space in the AccessDeniedException string
      throw new AccessDeniedException("User '" + (activeUser != null ?
        activeUser.getShortName() : "null") + "is not system or super user.");
    }
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to