IBM Support

LI79887: JSON UNICODE CONTROL CHARACTERS CAUSE XML PARSER FAILURE

 

APAR status

  • Closed as program error.

Error description

  • In API Connect 5.0.7.2, while parsing a json string, you may
    encounter a parser failure.
    
    For example in the following gatewayscript:
    
    apim.output('application/JSON');
    session.output.write('"myVarName":
    "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"');
    
    may result in
    
    { "httpCode": "500", "httpMessage": "Internal Server Error",
    "moreInformation": "Valid base64 passed to dp:decode resulted
    in non UTF8: '....'" }
    

Local fix

Problem summary

  • Unicode control characters inside of a JSON payload result in a
    parse error.
    

Problem conclusion

  • The fix is targeted for V5.0.8.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI79887

  • Reported component name

    API CONNECT ENT

  • Reported component ID

    5725Z2201

  • Reported release

    507

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-11-03

  • Closed date

    2017-12-13

  • Last modified date

    2017-12-13

  • 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":"507","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
04 September 2023