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

Some tests do not respect value of 'default.server.address' property

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.29.Final
    • Fix Version/s: 2.1.0.Final
    • Component/s: Core, Servlet
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Based on the content in /etc/hosts

      $ cat /etc/hosts 
      127.0.0.1		localhost.localdomain localhost
      ::1		localhost6.localdomain6 localhost6
      

      define value of the default.server.address:

      mvn clean install -fae -Ddefault.server.address=localhost.localdomain -DfailIfNoTests=false -Dtest=RequestPathTestCase.java,RedirectTestCase.java,ProxyHandlerXForwardedForTestCase.java,HttpServerExchangeTestCase.java
      
      Show
      Based on the content in /etc/hosts $ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 define value of the default.server.address : mvn clean install -fae -Ddefault.server.address=localhost.localdomain -DfailIfNoTests= false -Dtest=RequestPathTestCase.java,RedirectTestCase.java,ProxyHandlerXForwardedForTestCase.java,HttpServerExchangeTestCase.java

      Description

      Some tests in the testsuite don't respect value of the default.server.address property that is read by io.undertow.testutils.DefaultServer#getHostAddress(). As such, in case that one configures this property to some value that matches actual hostname of the machine, these tests simply fail as they continues to expect localhost value in assertions.

      Note: this is only tests issue. Not functional.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jstourac Jan Stourac
                  Reporter:
                  jstourac Jan Stourac
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: