IBM Support

PI77554: BEAN VALIDATION DID NOT FUNCTION CORRECTLY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In order to use Bean Validation added in JAX-RS 2.0, I sent a
    validation error request with annotation of Bean Validation to
    Resource class.
    However, the result did not become a validation error and it was
    processed normally.
    
    I think that Bean Validation did not function.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server JAX-RS and BeanValidation            *
    ****************************************************************
    * PROBLEM DESCRIPTION: The application server does not         *
    *                      validate JAX-RS resources when          *
    *                      a resource lacks a class level Bean     *
    *                      Validation constraint                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Before invoking a JAX-RS resource method, the application
    server validates the resource's method level Bean Validation
    constraints only when the resource declares a class level
    constraint.  That is, the server does not validate method
    level Bean Validation constraints when invoking a method of a
    JAX-RS resource that does not declare a class level constraint.
    The unexpected behavior is caused by a JAX-RS server runtime
    optimization where the runtime skips Bean Validation whenever
    a JAX-RS resource lacks a class level constraint.
    APAR PI77554 modifes the JAX-RS server runtime to always
    validate the Bean Validation constraints of a JAX-RS resource
    -- in particular, method level constraints -- before
    invoking the resource's methods.
    

Problem conclusion

  • Apply APAR PI77554 to enable the JAX-RS server runtime to
    always validate the Bean Validation constraints of a JAX-RS
    resource before invoking the resource's methods.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 9.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

    PI77554

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-03-02

  • Closed date

    2017-03-14

  • Last modified date

    2017-03-14

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R850 PSY

       UP

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

Document Information

Modified date:
18 October 2021