IBM Support

PH41660: AFTER 21.0.0.9 UPGRADE "DEFAULTHOSTNAME" DEFINITION IN BOOTSTRAP.PROPERTIES DOES NOT OVERWRITE LIBERTY DEFAULT.

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • After upgrade to 21.0.0.9, with the following definition in
    server.xml:
    
    <httpEndpoint id="defaultHttpEndpoint"
    host="${defaultHostName}" httpPort="${defaultPort}"
    httpsPort="${defaultSecPort}" enabled="true" >
    
    and the variables defined in bootstrap.properties:
    defaultHostName=some.host.name
    ...
    
    the Liberty default of "localhost" is used instead of the
    defined value in bootstrap.propertes.
    
    
    The problem is only with this specific spelling of the
    variable
    "defaultHostName".
    

Local fix

  • Use a variable name different from "defaultHostName", ex:
    "mydefaultHostName"
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Liberty 21.0.0.9 - 22.0.0.1 users who had   *
    *                  defined a defaultHostName replacement       *
    *                  property in bootstrap.properties and who    *
    *                  used that property in <httpEndoint> in      *
    *                  server.xml.                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: defaultHostName substitution variable   *
    *                      should be picked up from                *
    *                      bootstrap.properties                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    In 21.0.0.8 and earlier, the Liberty code would not replace the
    value from bootstrap.properties with the variable definition
    from defaultInstances. That issue was fixed on 21.0.0.8.
    The fix exposed an issue in Channel Framework where
    defaultHostName is set to a value "localhost" on the
    <httpEndpoint> by default and is not being allowed to be
    overwritten.
    
    The server.xml which shows the issue would look similar to this,
    where defaultHostName is defined in bootstrap.properties:
    
    
    <httpEndpoint id="defaultHttpEndpoint"
    
       host="${defaultHostName}"/>
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH41660

  • Reported component name

    LIBERTY PROF -

  • Reported component ID

    5655W6514

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-10-28

  • Closed date

    2022-02-01

  • Last modified date

    2022-02-01

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    LIBERTY PROF -

  • Fixed component ID

    5655W6514

Applicable component levels

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M"},"Platform":[{"code":"PF054","label":"z\/OS"}],"Version":"CD0"}]

Document Information

Modified date:
02 February 2022