Beckham007 created HADOOP-10773:
-----------------------------------

             Summary: testLocalHostNameForNullOrWild() will failed if we have 
UpperCase hostname
                 Key: HADOOP-10773
                 URL: https://issues.apache.org/jira/browse/HADOOP-10773
             Project: Hadoop Common
          Issue Type: Bug
          Components: security
    Affects Versions: 2.4.1
            Reporter: Beckham007


In the method getServerPrincipal() of SecurityUtil, we change the fqdn to 
lowcase. The testLocalHostNameForNullOrWild() of TestSecurityUtil will failed 
if the hostname contains uppercase.
We could fix it simply change "String local = SecurityUtil.getLocalHostName();" 
to "String local = SecurityUtil.getLocalHostName().toLowCase();" in 
testLocalHostNameForNullOrWild().
But I think we should rethink the implement of SecurityUtil.replacePattern(). 
Is it need to hange the fqdn to lowcase?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to