IBM Support

PM66000: DIFFERENTLY NAMED URI PATH TEMPLATE VARIABLES IN JAX-RS SUBRESOU RCE METHODS MIGHT NOT BE RECOGNIZED.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Consider the following resource class:
    
    @Path("/books")
    public class MachineCollectionEntity  {
    
     @GET
     @Path("/{bookTitle}")
     public Response getBookByTitle(@PathParam("bookTitle") String
    bookTitle) throws Exception {
      ...
     }
    
     @POST
     @Path("/{isbn}")
     public Response addBookToCollection(@PathParam("isbn") String
    isbn) throws Exception {
      ...
     }
    }
    
    Depending on the order of the methods, either the bookTitle or
    isbn parameters will be null, even though the path parameter
    specified in the request is non-null.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Application developers of JAX-RS services   *
    *                  specifying URI path template variables on   *
    *                  subresource methods, running IBM WebSphere  *
    *                  Application Server V8.0 and V8.5.           *
    ****************************************************************
    * PROBLEM DESCRIPTION: Subresource methods (meaning, methods   *
    *                      with an @Path annotation implemented    *
    *                      within a resource class) can use        *
    *                      variables in their Path value. If       *
    *                      subresource methods have differently    *
    *                      named URI path template variables,      *
    *                      such as what is shown in the previous   *
    *                      example, the parameter that is passed   *
    *                      into the subresource method might be    *
    *                      null.                                   *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this       *
    *                  APAR.                                       *
    ****************************************************************
    Subresource methods (meaning, methods with an @Path annotation
    implemented within the resource class) can use variables in
    their Path value. If subresource methods have differently
    named URI path template variables, such as what is shown in
    the example, the parameter that is passed into the subresource
    method might be null.
    For example, using the same example, if the application tries
    to print the value of the isbn parameter, you might observe
    that it is null, when the path parameter specified with the
    request URL is not null.
    

Problem conclusion

  • The JAX-RS engine was corrected to process each subresource
    method's URI path template variable, if present.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.6 and 8.5.0.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

    PM66000

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-01

  • Closed date

    2012-07-26

  • Last modified date

    2012-11-06

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

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

    PM68371

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

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

Document Information

Modified date:
02 November 2021