Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10773

testLocalHostNameForNullOrWild() will failed if we have UpperCase hostname

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            beckham007 Beckham007
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: