IBM Support

IT05987: FOR JSON TYPE MESSAGES, ESCAPING IS INCORRECT. EXAMPLES ARE SURROGATE PAIRS, SUCH AS EMOJI, AND A BMP IN AN OBJECT NAME

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Processing JSON feeds (in UTF-8) through DataPower to convert
    them to JSONx.
    
    A customer might receive the below error log message when
    DataPower is converting the contained emoji characters to
    escaped characters like \uD83D\uDCAF\uD83D\uDCAF\uD83D\uDCAF:
    
    'Converting PIPE with map JSONInput results stored in PIPE'
    failed: Convert HTTP produced invalid XML: invalid character
    reference at offset ...'
    
    Also BMP (Basic Multilingual Plane) escapes might be handled
    incorrectly in object names.  Eg.  {"\u0040":...} resulting in
    <json:string name="&amp;#x0040;">...  .
    

Local fix

Problem summary

  • Affected is processing of escaped characters in JSON strings for
    JSON request/response type services or services with "Convert
    Query Parameters to XML" action with JSON mapping.
    
    DataPower errors out for any escaped surrogate pair
    (\uXXXX\uYYYY), and 6 character escapes are handled wrong in
    object names ("\u0040" becomes "&amp;#x0040;".
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT05987

  • Reported component name

    DATAPOWER

  • Reported component ID

    DP1234567

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-12-09

  • Closed date

    2015-03-08

  • Last modified date

    2015-08-28

  • 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

  • R600 PSY

       UP

  • R601 PSY

       UP

  • R700 PSY

       UP

  • R710 PSY

       UP



Document information

More support for: IBM DataPower Gateways
General

Software version: 5.0.0

Reference #: IT05987

Modified date: 28 August 2015