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

Beckham007 updated HADOOP-10773:
--------------------------------

    Priority: Minor  (was: Major)

> 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
>            Priority: Minor
>
> 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