[jboss-jira] [JBoss JIRA] (WFCORE-4572) UndertowHttpManagementService uses incorrect bind address for creating listener for https socket binding

Jaikiran Pai (Jira) issues at jboss.org
Fri Jul 19 04:07:01 EDT 2019


Jaikiran Pai created WFCORE-4572:
------------------------------------

             Summary: UndertowHttpManagementService uses incorrect bind address for creating listener for https socket binding
                 Key: WFCORE-4572
                 URL: https://issues.jboss.org/browse/WFCORE-4572
             Project: WildFly Core
          Issue Type: Bug
          Components: Server
    Affects Versions: 10.0.0.Beta2, 9.0.2.Final
            Reporter: Jaikiran Pai
            Assignee: Jeff Mesnil


There appears to be a typo in UndertowHttpManagementService.java where in its start method it has this code:

{code:java}
...
if(secureBindAddress != null) {
            ListenerRegistry.Listener https = new ListenerRegistry.Listener("https", HTTPS_MANAGEMENT, SERVER_NAME, bindAddress);
            ...
        }
{code}
Notice that it creates a Listener by passing it "bindAddress". This IMO is a typo and should instead pass the "secureBindAddress".

This isn't causing any visible issues right now since there appear to be no one who uses this value from the instantiated Listener (no calls to Listener.getBindAddress()).




--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list