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

ASF GitHub Bot commented on JENA-868:
-------------------------------------

GitHub user afs opened a pull request:

    https://github.com/apache/jena/pull/446

    JENA-868: Base URL generation without protocol, host or port

    Tested in standalone server (root webapp name) and tomcat (webapp /fuseki).


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/afs/jena fuseki-ui

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/446.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #446
    
----
commit f2fcbc76daaee52e3ee40afcee85f0b3a1c7ce63
Author: Andy Seaborne <andy@...>
Date:   2018-07-07T15:14:57Z

    JENA-868: Base URL generation without protocol, host or port

----


> Fuseki2: docker: Redirected ports lead to wrong URLs.
> -----------------------------------------------------
>
>                 Key: JENA-868
>                 URL: https://issues.apache.org/jira/browse/JENA-868
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Fuseki
>    Affects Versions: Fuseki 2.0.0
>         Environment: Docker
> https://registry.hub.docker.com/u/stain/jena-fuseki/
>            Reporter: Stian Soiland-Reyes (old)
>            Assignee: Andy Seaborne
>            Priority: Minor
>             Fix For: Fuseki 2.3.1
>
>
> If I use docker and jena-fuseki exposing the port on something other than the 
> one it is running at, e.g. with -p 3031:3030 - then in the browser at 
> http://localhost:3031/ when I go to *Manage datasets* -> *Create dataset"* I 
> simply get "error" because it is trying to POST to 
> http://localhost:3030/datasets instead of http://localhost:3031/datasets.
> This could make it tricky to expose the Fuseki server through firewalls, web 
> servers etc, as one has to change the Fuseki port to match the public port.
> All URIs should be relative and not hard-code the port. (and not the host!)
> This is using fuseki-server.jar, I have not checked what happens if I do the 
> same through tomcat/WAR.
> The workaround is to always expose the same port - e.g. add the argument 
> --port=3031
>     docker run -p 3031:3031 stain/jena-fuseki ./fuseki-server --port=3031



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to