IBM Support

PI42598: FILTER WITHOUT A FILTER DECLARATION DOES NOT GET INVOKED IN LIBERTY PROFILE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Filters defined with WebFilter annotations and only mapping
    assigned in web.xml does not get processed in Liberty.
    

Local fix

  • Add the filter delaration
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Liberty    *
    *                  Profile version 8.5.5 users of              *
    *                  WebContainer.                               *
    ****************************************************************
    * PROBLEM DESCRIPTION: Filters declared by annotations without *
    *                      a filter element in the deployment      *
    *                      descriptor are not invoked.             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the deployment descriptor contains a <filter-mapping>
    element, does not define that same filter in the <filter>
    element, and the filter is declared with the @WebFilter
    annotation the filter does not get invoked.
    

Problem conclusion

  • The WebContainer has been modified to fully process filters.
    
    A new WebContainer custom property needs to be set to enable
    this behavior:
    
    Name:
    com.ibm.ws.webcontainer.deferProcessingIncompleteFiltersInWebXML
    Values: true / false (default)
    
    The fix for this APAR is currently targeted for inclusion in
    fixpack 8.5.5.9.
    Please refer to the recommended updates page for delivery
    information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

  • Fully define the filter in the deployment descriptor.
    

Comments

APAR Information

  • APAR number

    PI42598

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-06-08

  • Closed date

    2015-11-13

  • Last modified date

    2015-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

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

Document Information

Modified date:
16 October 2021