APAR status
Closed as program error.
Error description
When message.body is updated with an apim.setvariable and followed with an apim.setvariable of message.headers.content-type instead of an apim.output(content-type), the returned content-type header for this v5 emulated policy will be "unknown".
Local fix
Add apim.output('application/json'); after the apim.setvariable('message.body')
Problem summary
When the gatewayscript_1.0.0 policy sets the message content-type header directly after setting the message.body, this would be accepted in API Connect v5, but for v10 using the emulated v5 framework, the content-type header was not being marshaled to the v10 API context in this case, which resulted in a content type being returned of "unknown".
Problem conclusion
<span style="background-color:rgb(255, 255, 255)">A fix will be provided in the API Connect releases 10.5.0.0 and 10.0.1.7.</span>
Temporary fix
Comments
APAR Information
APAR number
LI82488
Reported component name
API CONNECT ENT
Reported component ID
5725Z2201
Reported release
A0X
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2022-01-27
Closed date
2022-07-13
Last modified date
2022-09-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
API CONNECT ENT
Fixed component ID
5725Z2201
Applicable component levels
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A0X","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
08 September 2022