IBM Support

PH49305: MULTIPLE VALUES IN REQUEST HEADER "X-FORWARDED-FOR" NOT LOGGED.

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

  • Multiple "X-Forwarded-For" exist in the request header.
    In this case only the first one is outputed to log.
    
    for example :
    
    in request header
    X-Forwarded-For 12.xx.xx.xx,13.xx.xx.xx
    X-Forwarded-For 14.xx.xx.xx
    X-Forwarded-For 10.xx.xx.xx
    
    accessLogging settings (server.xml)
    <accessLogging filepath="${SERVER_LOG_ROOT}/access.log"
    logFormat='%h %u %t "%r" %b "%{Referer}i" %s "%{User-Agent}i"
    "%{X-Forwarded-For}i" "%{JSESSIONID}C" '/>
    
    With this setting, only the first "%{X-Forwarded-For}i" part is
    output. (12.xx.xx.xx,13.xx.xx.xx)
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Customers using HTTP Access Logging.        *
    ****************************************************************
    * PROBLEM DESCRIPTION: When multiple valid same named headers  *
    *                      are present in an HTTP request, such   *
    *                      as                                      *
    *                      multiple X-Forwarded-For headers, only  *
    *                      the first value is logged in the HTTP  *
    *                      Access Log.  All Headers should be     *
    *                      logged in a comma separated list.       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When multiple valid same named headers are present in an
    HTTP request, only the first one is logged in the HTTP Access
    Log.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH49305

  • 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

    2022-09-07

  • Closed date

    2022-10-05

  • Last modified date

    2022-10-05

  • 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":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
06 October 2022