[ 
https://issues.apache.org/jira/browse/ISIS-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17011922#comment-17011922
 ] 

ASF subversion and git services commented on ISIS-2261:
-------------------------------------------------------

Commit 1d21728eb42d99c8e89752b8d7b56abed684bb25 in isis's branch 
refs/heads/master from danhaywood
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=1d21728 ]

ISIS-2261: adds isis.viewer.restfulobjects.baseUri optional config property

and updates ResourceAbstract to use it if defined.


> 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)

Reply via email to