Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1655

HttpHostValuesTestCase#testRequestSpec() fails when hostname for 127.0.0.1 is not localhost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Servlet

    Description

      HttpHostValuesTestCase#testRequestSpec() fails when first hostname specified for 127.0.0.1/::1 in /etc/hosts file is not localhost.

      For example for this configuration (from our rhel machines):

      # The following lines are desirable for IPv4 capable hosts
      127.0.0.1 rhel7-large-49532 rhel7-large-49532
      127.0.0.1 localhost.localdomain localhost
      127.0.0.1 localhost4.localdomain4 localhost4
      
      # The following lines are desirable for IPv6 capable hosts
      ::1 rhel7-large-49532 rhel7-large-49532
      ::1 localhost.localdomain localhost
      ::1 localhost6.localdomain6 localhost6
      

      the result is:

      hostName: localhost , response: rhel7-large-49532 (localhost is expected in the test, rhel7-large-49532 is actual value)

      The test needs to be fixed.

      Attachments

        Issue Links

          Activity

            People

              flaviarnn Flavia Rainone
              tterem@redhat.com Tomas Terem (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: