IBM Support

IT14295: GATEWAYSCRIPT READASJSON() CANNOT PROCESS UTF-8 ENCODED JSON DATA THAT IS BOM PREFIXED (BYTE ORDER MARK).

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Affected is use of GatewayScript readAsJSON() function for
    parsing UTF-8 encoded JSON input that is prefixed with a BOM.
    DataPower will report a parsing error incorrectly.
    

Local fix

  • Use readAsBuffer(... buf ...) instead, together with
    JSON.parse(buf.toString('utf8')).
    

Problem summary

  • Affected is use of GatewayScript readAsJSON() function.
    
    Parsing valid UTF-8 encoded JSON input that is prefixed with a
    BOM will report a parsing error incorrectly.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT14295

  • Reported component name

    DATAPOWER

  • Reported component ID

    DP1234567

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-03-14

  • Closed date

    2016-03-20

  • Last modified date

    2016-05-21

  • 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

  • R700 PSY

       UP

  • R710 PSY

       UP

  • R720 PSY

       UP

  • R750 PSY

       UP

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateways"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0.0"}]

Document Information

Modified date:
26 September 2021