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/08 23:19:00 UTC
[jira] [Created] (ISIS-2261) Allow the baseUri of the RO viewer to
be overridden
Daniel Keir Haywood created ISIS-2261:
-----------------------------------------
Summary: 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
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)