[
https://issues.apache.org/jira/browse/JENA-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301565#comment-17301565
]
ASF subversion and git services commented on JENA-2042:
-------------------------------------------------------
Commit 461c92124ef06ed199f2a23174ce34b71fe5da19 in jena's branch
refs/heads/master from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=461c921 ]
Merge pull request #914 from jmkeil/patch-3
JENA-2042 FusekiServer::getPort() returns actual port
> FusekiServer::getPort() does not return actual port
> ---------------------------------------------------
>
> Key: JENA-2042
> URL: https://issues.apache.org/jira/browse/JENA-2042
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Jena 3.17.0
> Reporter: Jan Martin Keil
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {{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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)