IBM Support

PI96665: SERVLET CACHING DOESN'T SUPPORT HTTP 1.1 TRANSFER-ENCODING: CHUNKED REQUESTS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The customer's JAX-WS client is sending an HTTP 1.1 request with
    the "Tranfer-Encoding: chunked" HTTP header and sometimes there
    are multiple chunks. The appliation requires servlet caching
    for some JAX-WS response. However, servlet caching doesn't
    support chunked requests. Customer requires the ability to read
    chunked requests with servlet caching.
    
    Exception created : [java.lang.IllegalStateException: request
    must know content length to use inputstream while generating Id
     at
    com.ibm.ws.cache.servlet.CacheProxyRequest.getInputStream(CacheP
    roxyRequest.java:232)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using servlet caching with chunked   *
    *                  encoded requests.                           *
    ****************************************************************
    * PROBLEM DESCRIPTION: An IllegalStateException occurs when    *
    *                      servlet caching is enabled and the      *
    *                      HTTP request content length is          *
    *                      unknown.                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Servlet caching must know the content length of the incoming
    request when generating a cache id to store the response
    output. If the HTTP request is using chunked encoding the
    content length is unknown until the entire content is obtained
    from the input stream.  Servlet caching does not have support
    for chunked encoded requests and throws an
    IllegalStateException because the content length is unknown.
    

Problem conclusion

  • Support for chunked encoded requests has been added to servlet
    caching.  The content length is calculated by obtaining all
    the chunks from the input stream.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.14, 9.0.0.9 and 18.0.0.2.  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

    PI96665

  • 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

    2018-04-12

  • Closed date

    2018-05-10

  • Last modified date

    2018-05-10

  • 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