0 Replies Latest reply on Nov 18, 2019 5:44 AM by dleborgne

    WildFly 18 : Change in redirect behavior after upgrading from WildFly 17

    dleborgne

      Hello !

       

      After uprgading from WildFly 17.0.1 to WildFly 18.0.1, we saw a change in the way the WildFly replies to an HTTP request to the /application (without trailing slash) URL.

      Reviewing the changelog did not help to understand the behavior change.

      The problem only happens with one of our web application, and so far, we were not able to build a simple test case to reproduce.

       

      Changing the io.undertow log level to DEBUG did not provide any additional information. Any help would be appreciated on how to diagnose the issue.

       

      With WildFly 17.0.1.Final, a request to /application gets a HTTP 302 redirection to /application/

      # wget --max-redirect=0 --server-response --output-document=/dev/null http://127.0.0.1:8080/application

      --2019-11-18 09:51:00--  http://127.0.0.1:8080/application

      Connecting to 127.0.0.1:8080... connected.

      HTTP request sent, awaiting response...

        HTTP/1.1 302 Found

        Connection: keep-alive

        Location: http://127.0.0.1:8080/application/

        Content-Length: 0

        Date: Mon, 18 Nov 2019 08:51:00 GMT

       

      io.undertow log :

      [io.undertow.request] (default I/O-2) Matched prefix path /crmapps for path /crmapps

      [io.undertow.request] (default I/O-4) Matched prefix path /crmapps for path /crmapps/

      [io.undertow.request.security] (default task-1) Security constraints for request /crmapps/ are [...]

       

      With WildFly 18.0.1.Final, a request to /application gets the login form :

      # wget --max-redirect=0 --server-response --output-document=/dev/null http://127.0.0.1:8080/application

      --2019-11-18 09:50:24--  http://127.0.0.1:8080/application

      Connecting to 127.0.0.1:8080... connected.

      HTTP request sent, awaiting response...

        HTTP/1.1 200 OK

        Expires: 0

        Expires: 0

        Connection: keep-alive

        Cache-Control: no-cache, no-store, must-revalidate

        Cache-Control: no-cache, no-store, must-revalidate

        Set-Cookie: JSESSIONID=[...], path=/application; HttpOnly

        Pragma: no-cache

        Pragma: no-cache

        Content-Type: text/html;charset=UTF-8

        Content-Length: 3001

        Date: Mon, 18 Nov 2019 08:50:24 GMT

       

      io.undertow log :

      [io.undertow.request] (default I/O-3) Matched prefix path /crmapps for path /crmapps

      [io.undertow.request.security] (default task-1) Security constraints for request /crmapps are [...]

       

      Best regards,

      David Le Borgne