IBM Support

PH39672: HTTP status code 500 is returned when an API requester sends an empty request body.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as new function.

Error description

  • When a z/OS Connect EE API requester is invoked with a zero
    length request body, the API endpoint returns HTTP status code
    500 and the following message is written to the messages.log:
    
    BAQR1153W: HTTP status code 500 is returned in the response
    for the API operation
    
    Additional search words: BAQR1153W msgBAQR1153W msgBAQR1153
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of z/OS Connect EE V3 API          *
    *                 requesters.                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: HTTP status code 500 is returned when   *
    *                      an API requester sends an empty request *
    *                      body.                                   *
    ****************************************************************
    When an empty request body was sent while invoking an external
    API, the Content-Type was set to asterisk/asterisk for the
    request body sent by z/OS Connect EE. If the endpoint is
    expecting to receive Content-Type "application/json" the
    endpoint might return the reported 500 HTTP status code.
    

Problem conclusion

Temporary fix

Comments

  • z/OS Connect API requester and build toolkit has been updated to
    accept Content-Type for empty requests and pass the configured
    Content-Type to endpoint.
    
    The following build toolkit parameters have been added to
    configure the Content-Type for empty body requests:
    sendContentTypeForEmptyBody
    contentTypeForEmptyRequest
    
    This fix is available with Build Toolkit version 1.10 and above.
    
    The fix for this APAR is expected to be delivered by the PTF
    for z/OS Connect EE V3.0.60.0 (PH48008).
    

APAR Information

  • APAR number

    PH39672

  • Reported component name

    Z/OS CONNECT EE

  • Reported component ID

    5655CE300

  • Reported release

    000

  • Status

    CLOSED UR1

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-08-10

  • Closed date

    2022-07-18

  • Last modified date

    2023-02-08

  • 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

    Z/OS CONNECT EE

  • Fixed component ID

    5655CE300

Applicable component levels

[{"Business Unit":{"code":"BU029","label":"Software"},"Product":{"code":"SSVVFY","label":"z\/OS Connect Enterprise Edition"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.0"}]

Document Information

Modified date:
08 February 2023