2 Replies Latest reply on Feb 18, 2020 1:33 AM by jdafi

    UriInfo.getBaseUri() returns different value in WildFly 13 and Wildfly 18

    jdafi

      My apache redirects https request to an internal Wildfly (WF) with `ProxyPass`

       

      The webapp deployed in WF uses javax.ws.rs.core.UriInfo.getBaseUri() to obtain the uri.

       

      Under WF 13 the returned scheme value is `https` (eg https://apache.mydomain.com/myapp/hello)

       

      Updating to WF 18.0.1 the returned scheme value is `http`, losing the https secure scheme.

       

      I don't know in which version 14, 15, 16, 17 or 18 this happened for the first time but has a bad impact on my app

       

      Is this a bug or the implementation has changed?

       

      How can I obtain the https version like in WF 13?