A fix is available
APAR status
Closed as program error.
Error description
When the server returns http code 401(Unauthorized), the Content-Length is 0. This causes the getHttpErrorStream to return null. The httpGetClob does not handle the null pointer correctly and throws NullPointerException and may return SQLCODE -4302. ADDITIONAL SYMPTOMS: SQLCODE4302 SQLUDF DB2INCORR/K INCORROUT SQLINCORR SQLINCORROUT
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * * All Db2 for z/OS users of HTTPGETCLOB and * * HTTPGETBLOB REST UDFs * **************************************************************** * PROBLEM DESCRIPTION: * * The HTTPGETCLOB and HTTPGETBLOB UDFs * * might return SQLCODE-4302 with * * java.lang.NullPointerException. * **************************************************************** * RECOMMENDATION: * * Apply corrective PTF when available * **************************************************************** When the responseMsgFormat="errorTagged" is specified in the httpHeader attribute and the server returns a http error return code, the HTTPGETCLOB and HTTPGETBLOB UDFs will return - SQLCODE 0 - The error message from the server, in the following format: <error httprc="{HTTP-status-code}"> {error-message-returned-from-server} </error> In the case that the server response does not include the error message, the NullPointerException will occur.
Problem conclusion
Db2 is modified to handle the empty error message case correctly.
Temporary fix
Comments
APAR Information
APAR number
PH54701
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2023-05-24
Closed date
2023-08-28
Last modified date
2023-10-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI93325 UI93326
Modules/Macros
DSNTJRF
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
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.
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"DB2 for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.0","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
02 October 2023