APAR status
Closed as program error.
Error description
When using the REST command mapping framework to map REST API calls to commands, JSON arrays in the request body are mapped to List instances in the request properties, but most commands expect String arrays as values for repeated parameters instead of List instances. Specifically this causes the REST cart calculate method to not support calculationUsageId being a JSON array in the request body, e.g. { "calculationUsageId" : ["-1","-2","-3","-4"] }
Local fix
- call the REST cart calculate method with calculationUsageId being a string/a single calculation usage ID
Problem summary
Enhance REST command mapping framework to support calculationUsageId being a JSON array in the REST cart calculate method.
Problem conclusion
When using the REST command mapping framework to map REST API calls to commands, JSON arrays in the request body are mapped to List instances in the request properties, but most commands expect String arrays as values for repeated parameters instead of List instances. Specifically this causes the REST cart calculate method to not support calculationUsageId being a JSON array in the request body, e.g. { "calculationUsageId" : ["-1","-2","-3","-4"] }
Temporary fix
Comments
APAR Information
APAR number
JR51478
Reported component name
WC BUS EDITION
Reported component ID
5724I3800
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
YesSpecatt / New Function
Submitted date
2014-10-09
Closed date
2015-08-25
Last modified date
2015-08-25
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
WC BUS EDITION
Fixed component ID
5724I3800
Applicable component levels
R700 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
25 August 2015