IBM Support

JR55380: Extending REST resource handlers that use query or action registry causes certain REST methods to become inaccessible

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When a REST resource handler that implements
    initializeQueryRegistry or initializeActionRegistry is extended,
     the extended handler will respond to methods not registered in
    a query or action registry, and methods registered in the
    registry of the extended handler. Methods registered in a query
    or action registry of the superclass do not respond. The issue
    is caused by the use of getDeclaredMethod instead of getMethod
    in the
    AbstractBaseResourceHandler.registerOperationWithMethodSignature
     method. getDeclaredMethod searches the existing class for a
    matching method, but not the superclass.
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce Version 8 customers who extend REST services.
    
    PROBLEM ABSTRACT:
    Extending REST resource handlers that use query or action
    registry causes certain REST methods to become inaccessible
    
    BUSINESS IMPACT:
    Extending from a REST resource handler that implements
    initializeQueryRegistry or initializeActionRegistry causes REST
    methods that are registered in the query or action registry of
    the superclass to become inaccessible.
    
    RECOMMENDATION:
    

Problem conclusion

  • The solution is to update
    AbstractBaseResourceHandler.registerOperationWithMethodSignature
     method to use getMethod rather than getDeclaredMethod to search
     for a matching method in the current class and its
    superclasses.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR55380

  • Reported component name

    WC BUS DEV ED W

  • Reported component ID

    5724I3900

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-02-23

  • Closed date

    2016-03-17

  • Last modified date

    2016-03-17

  • 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

    WC BUS DEV ED W

  • Fixed component ID

    5724I3900

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSYT2H","label":"WebSphere Commerce Developer Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021