Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4572

UndertowHttpManagementService uses incorrect bind address for creating listener for https socket binding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 10.0.0.Beta3, 10.0.0.Final
    • 9.0.2.Final, 10.0.0.Beta2
    • Server
    • None

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

      ...
      if(secureBindAddress != null) {
                  ListenerRegistry.Listener https = new ListenerRegistry.Listener("https", HTTPS_MANAGEMENT, SERVER_NAME, bindAddress);
                  ...
              }
      

      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()).

              jaikiran Jaikiran Pai (Inactive)
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: