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

TestSecurityUtil#testLocalHostNameForNullOrWild on systems where hostname contains capital letters

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 3.0.0-alpha1
    • security, test
    • None

    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.

      Attachments

        1. HADOOP-9431.1.patch
          1 kB
          Chris Nauroth

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cnauroth Chris Nauroth
            cnauroth Chris Nauroth
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment