bbende commented on code in PR #8404:
URL: https://github.com/apache/nifi/pull/8404#discussion_r1496198434


##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java:
##########
@@ -724,7 +726,7 @@ protected List<URI> getApplicationUrls() {
                     final String scheme = sslConnectionFactory == null ? 
HTTP_SCHEME : HTTPS_SCHEME;
                     final int port = serverConnector.getLocalPort();
                     final String connectorHost = serverConnector.getHost();
-                    final String host = 
StringUtils.defaultIfEmpty(connectorHost, HOST_UNSPECIFIED);
+                    final String host = 
URLEncoder.encode(StringUtils.defaultIfEmpty(connectorHost, HOST_UNSPECIFIED), 
StandardCharsets.UTF_8);
                     return URI.create(String.format(APPLICATION_URL_FORMAT, 
scheme, host, port));

Review Comment:
   Thanks @dan-s1 , that seems like a simpler solution and does appear to work



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to