APAR status
Closed as program error.
Error description
The Buffer.indexOf function fails and reports the following error message: gatewayscript:///modules/buffer.js' line:124, stack:TypeError: Invalid type 'uint' detected on method invocation
Local fix
Modify indexOf calls to convert Buffer to a String before calling indexOf. Example: change: var bodyStart = buf.indexOf('<BODY>'); to: var bodyStart = buf.toString().indexOf('<BODY>');
Problem summary
DataPower GatewayScript indexof and lastindexof functions fail on a buffer object.
Problem conclusion
Fix is available in 10.5.0.9, 10.0.1.17 and 10.5.3.0 For a list of the latest fix packs available, please see: https://www.ibm.com/support/pages/node/83105
Temporary fix
Comments
APAR Information
APAR number
IT44514
Reported component name
DATAPOWER
Reported component ID
DP1234567
Reported release
A0X
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2023-09-13
Closed date
2023-11-28
Last modified date
2023-12-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
DATAPOWER
Fixed component ID
DP1234567
Applicable component levels
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateways"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A0X","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
08 December 2023