Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-30755

[GSS](8.1.z) jboss.qualified.host.name may not be properly calculated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 8.1 Update 2
    • None
    • Server
    • None

      The jboss.qualified.host.name is the propery name that holds the fully-qualified name of the host machine where WildFly is running.

      If it is not explicitly set, its value is calculated as follow:

      • it gets the runtime value of "HOSTNAME" or "COMPUTERNAME" environment variables, or, if neither environment variable is present, to the value of InetAddress.getLocalHost().getHostName().

      However InetAddress.getLocalHost().getHostName() does not perform a DNS lookup to get the FQDN of the current host, so it won't return the expected value.

      This issue is a consequence of https://bugs.openjdk.org/browse/JDK-8201369 fixed since JDK 11 which was not properly backported to JDK 1.8 and later fixed by https://bugs.openjdk.org/browse/JDK-8339414

      The consequences are that in the case this value is calculated using InetAddress.getLocalHost().getHostName(), the server would not calculated it as expected since JDK11 and could produce different results if you were using different versions of JDK 1.8.

              yborgess1@redhat.com Yeray Borges Santana
              rhn-support-aogburn Aaron Ogburn
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: