IBM Support

PH38815: DFHPI0002 SEVERE ERROR CODE 0508 IN MODULE DFHPITH WHEN RECEIVING HTTP INPUT WITH NO VALUE SET FOR CONTENT TYPE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • You are running CICS 5.6 and receive the following error
    and a dump is produced:
    
    DFHPI0002 APPLID A severe error (code X'0508') has occurred in
              module DFHPITH.
    DFHDU0201 APPLID ABOUT TO TAKE SDUMP. DUMPCODE: PI0002
    
    Reviewing the dump, here is the exception trace entry:
    
    PI 0508 PITH *EXC* - WB_INBOUND_REQUEST_FAILURE -
                         FUNCTION(SEND_RESPONSE)
    
    The task was attached due to receiving an inbound request
    that appears to have come from the Postman test tool.  The start
    of the HTTP request looks like the following:
    
      POST /cics/xxxxxxx/yyyyyyyy HTTP/1.1
      Content-Type:
      cache-control: no-cache
      Postman-Token: nnanannn-aann-nnan-nnnn-ananananan96
      User-Agent: PostmanRuntime/7
    
    The user has deliberately set the Content-Type HTTP header to be
    sent without a value.  This causes CICS to try and send a 415
    Unsupported Media Type error response back to the client, but
    DFHPITH doesn't set things up correctly, leading to the
    DFHPI0002 error message and dump.
    
    Additional symptoms: KIXREVJRL
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All CICS users                               *
    ****************************************************************
    * PROBLEM DESCRIPTION: Message DFHPI0002 and system dump when  *
    *                      receiving a web service request with no *
    *                      value set for the Content-Type HTTP     *
    *                      header.                                 *
    ****************************************************************
    A web service request is sent to CICS that contains an empty
    Content-Type header. This causes DFHPITH to try and send a 415
    Unsupported Media Type error response back to the client via
    DFHWBAP, supplying the original empty Content-Type value as the
    mediatype parameter. DFHWBAP validates the mediatype and returns
    WBAP_EXCEPTION / WBAP_INVALID_MEDIATYPE. DFHPITH does not have
    any code to handle this response so the default severe error
    handling takes place.  That results in message DFHPI0002
    being issued and a system dump taken.
    

Problem conclusion

  • DFHPITH has been changed so that when it issues the DFHWBAP
    SEND_RESPONSE, it doesn't pass the empty Content-Type.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH38815

  • Reported component name

    CICS TS Z/OS V5

  • Reported component ID

    5655Y0400

  • Reported release

    300

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-07-08

  • Closed date

    2021-09-16

  • Last modified date

    2021-10-01

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

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

    UI77163

Modules/Macros

  • DFHPITH
    

Fix information

  • Fixed component name

    CICS TS Z/OS V5

  • Fixed component ID

    5655Y0400

Applicable component levels

  • R300 PSY UI77163

       UP21/09/17 P F109

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Line of Business":{"code":"LOB35","label":"Mainframe SW"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.6"}]

Document Information

Modified date:
02 October 2021