Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
Jena 3.17.0
-
None
Description
FusekiServer::getPort() does not return the actual port (but 0), if Fuseki was configured to select a random free port. E.g. FusekiServer.create().port(0).build().start().getPort() returns 0. I would expect and Java Doc states the method should return the selected port.
In case of HTTP only, one can use ((ServerConnector) fuseki.getJettyServer().getConnectors()[0]).getLocalPort() instead. However, including HTTPS, things become more complicated, as the correct port of the correct connector needs to be selected first.
Attachments
Issue Links
- relates to
-
JENA-2068 Add the ability to use a Jetty server configuration file.
- Closed
- links to