Hadoop Common
  1. Hadoop Common
  2. HADOOP-9431

TestSecurityUtil#testLocalHostNameForNullOrWild on systems where hostname contains capital letters

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: security, test
    • Labels:
      None
    • Target Version/s:

      Description

      TestSecurityUtil#testLocalHostNameForNullOrWild contains assertions about the principal returned for a null or wildcard hostname. The logic in SecurityUtil#getServerPrincipal converts the local hostname to lower-case. The test method does not perform the same conversion though, so the test passes on systems with a hostname containing no upper-case letters, but it fails if the hostname does contain upper-case letters.

        Issue Links

          Activity

            People

            • Assignee:
              Chris Nauroth
              Reporter:
              Chris Nauroth
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development