IBM Support

PI05525: STRINGINDEXOUTOFBOUNDSEXCEPTION THROWN WHEN URI IS NOT NORMAILZED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An application configured to respond to GET requests will
    throw a  java.lang.StringIndexOutOfBoundsException
    if the request URL is its context root followed by "../"
    

Local fix

  • N A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: A request will fail when the request    *
    *                      URI includes "/../" followed by the     *
    *                      context root.                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The WebContainer does not normalize the request URI before
    trying to resolve it to an application.
    As a result, a request URI which includes "/../" followed by
    the context root throws
    java.lang.StringIndexOutOfBoundsException.
    Note that the error does not occur for requests from a browser
    which normalizes the request URI prior to calling WebSphere
    Application Server, which most modern browsers do.
    

Problem conclusion

  • The WebContainer has been modified to normalize a request URI
    before trying to resolve it to an application. To get this new
    behavior the following new WebContainer custom property needs
    to be set.
    com.ibm.ws.webcontainer.normalizerequesturi= true (default
    =false)
    
    The following syntax needs to be updated in server.xml to
    enable this property.
    <webContainer normalizerequesturi="true" />
    
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.2. 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

    PI05525

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-11-05

  • Closed date

    2013-12-19

  • Last modified date

    2013-12-19

  • 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

  • R850 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":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022