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

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

XMLWordPrintable

    • Icon: QE Task QE Task
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • Servlet

      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.

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

              Created:
              Updated:
              Resolved: