Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-868

Fuseki2: docker: Redirected ports lead to wrong URLs.

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              soilandreyes Stian Soiland-Reyes (old) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: