IBM Support

PM93069: INCORRECTLY INVOKING A FILTER MUTLIPLE TIMES IF FILTER MAPPED TO MULTIPLE URLS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If the web.xml has the filter defined and its url mappings
    defined like following,
    .
    <filter>
    <filter-name>CustomRequestFilter</filter-name>
    <filter-class>com.ibm.ws.webcontainer.fvt.CustomRequestFilter</f
    ilter-class>
    </filter>
    <filter-mapping>
    <filter-name>CustomRequestFilter</filter-name>
    <url-pattern>/TestServlet</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>CustomRequestFilter</filter-name>
    <url-pattern>/customStuff/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>CustomRequestFilter</filter-name>
    <url-pattern>*.html</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>CustomRequestFilter</filter-name>
    <url-pattern>/customStuff/*</url-pattern>
    <url-pattern>*.html</url-pattern>
    </filter-mapping>
    .
    A request to
    ...server:port/FilterModifyRequestTestApp/customStuff/CustomPage
    .html
    .
    will add  the "CustomRequestFilter" 4 times in the FilterChain
    and then invoke 4 times before CustomPage.html is serviced.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: For an inbound request, the server      *
    *                      invokes the same filter multiple        *
    *                      times.                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When an inbound request URI maps to multiple URL filter
    mappings the filter chain will be updated with the same filter
    multiple times. This will result in the filter being invoked
    multiple times for the same URI.
    

Problem conclusion

  • The WebContainer code has been updated and a filter will not
    be added if it is already present in the chain.
    
    To get this new behavior the following new WebContainer custom
    property needs to be set in the server.xml:
    
    as
    
    <webContainer denyDuplicateFilterinChain="true"/> (default
    =false)
    
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.1. 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

    PM93069

  • 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-07-16

  • Closed date

    2013-08-09

  • Last modified date

    2014-10-21

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

    PM89149

  • 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:
12 January 2022