You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2020/01/14 23:43:00 UTC

[jira] [Resolved] (ISIS-2261) Allow the baseUri of the RO viewer to be overridden

     [ https://issues.apache.org/jira/browse/ISIS-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Keir Haywood resolved ISIS-2261.
---------------------------------------
    Resolution: Fixed

> Allow the baseUri of the RO viewer to be overridden
> ---------------------------------------------------
>
>                 Key: ISIS-2261
>                 URL: https://issues.apache.org/jira/browse/ISIS-2261
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core: Viewer: RestfulObjects
>            Reporter: Daniel Keir Haywood
>            Assignee: Daniel Keir Haywood
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> When running a webapp with a reverse proxy, where the reverse proxy does the https:// thing but the webapp itself only runs on [http://,|http://%2C/] then the baseUri that the RO viewer infers from the injected UriInfo (in ResourceAbstract) will have the incorrect baseUri.
> {code:java}
> public class ResourceAbstract {
>     @javax.ws.rs.core.Context UriInfo uriInfo; 
>     ...
> }{code}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)