Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2261

Allow the baseUri of the RO viewer to be overridden

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0-M3
    • Viewer RO
    • None

    Description

      When running a webapp with a reverse proxy, where the reverse proxy does the https:// thing but the webapp itself only runs on http://, then the baseUri that the RO viewer infers from the injected UriInfo (in ResourceAbstract) will have the incorrect baseUri.

      public class ResourceAbstract {
      
          @javax.ws.rs.core.Context UriInfo uriInfo; 
          ...
      }

      There doesn't seem to be anyway to tell JAXRS that the webapp is running behind a reverse proxy, so i think that we'll need to provide some sort of config parameter to allow the baseUri (scheme, hostname and port) to be overridden if required.

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: