Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.4.1
-
None
-
None
Description
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?