IBM Support

PH11216: Redirect context root for missing slash fails in WAS V9.0 and Liberty when using HTTPS connection

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When accessing an application like https://server/abc there
    should be a trailing slash appended so that the URL is
    redirected to https://server/abc/.
    
    This works fine for http (non-SSL) connections, but fails with
    NullPointerException for https when property
    com.ibm.ws.webcontainer.redirectcontextroot = true is set.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server v9 and     *
    *                  Liberty using HTTPS redirected pages        *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException when redirecting   *
    *                      application like                        *
    *                      https://server/app_contextRoot to       *
    *                      https://server/app_contextRoot/         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The error requires HTTPS protocol being used with custom
    property com.ibm.ws.webcontainer.redirectcontextroot = true.
    The error is a NullPointerException in
    com.ibm.ws.webcontainer.srt.SRTServletResponse.addSTSHeader.
    The STS Header support was added many years after
    redirectcontextroot and didn't take
    redirectcontextroot into account.  This fix corrects this.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH11216

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-04-18

  • Closed date

    2020-09-02

  • Last modified date

    2020-09-02

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R850 PSY

       UP

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
02 November 2021