You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Beckham007 (JIRA)" <ji...@apache.org> on 2014/07/02 05:42:24 UTC

[jira] [Created] (HADOOP-10773) testLocalHostNameForNullOrWild() will failed if we have UpperCase hostname

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)