IBM Support

PI99263: SERVLETCONTEXT.GETREALPATH() RETURNS NULL FOR RESOURCE IN EXTENDED DOCUMENT ROOT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Bug in the servletContext.getRealPath() for resource in
    extendedDocumentRoot
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: ServletContext.getRealPath() returns    *
    *                      null for resource in the Extended       *
    *                      Document Root (EDR).                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the resource is under a flat directory structure (i.e not
    in a zip or jar) in the EDR, the
    ServletContext.getRealPath(String) returns null for existing
    resource.
    

Problem conclusion

  • The WebContainer was corrected to return the correct path to the
    existing resource in the EDR.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 18.0.0.4.  Please refer to the Recommended Updates page for
    delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI99263

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-06-18

  • Closed date

    2018-11-13

  • Last modified date

    2018-11-13

  • 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 PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • RCD0 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
19 October 2021