IBM Support

LI79712: MAP CODE RESTRICTION NOT ALLOWING JSON OBJECTS IN VALUE STRINGS

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • The map policy has a restriction of not allowing json objects or
    arrays to be
    referenced by the map action's value string, so
    JSON.stringify(), which takes
    an object as its argument, is not being allowed.
    
    When having an API that consumes a Json payload and the Json
    payload is specified as a Json input to the map policy, a map
    action
    that specifies a value string JavaScript snippet that attempts
    to use a non
    primitive variable (an object or an array) from that input would
    return
    an undefined value which would not create any output map data
    for that action.  For example,
    JSON.stringify($(input.payload.myobject)) or
    $(input.payload.myarray)[0] would not be allowed.
    

Local fix

  • No Work-Around
    

Problem summary

  • A map input variable in a value string JavaScript snippet that
    was of an object or array datatype would be rejected, causing
    the map action to fail and no output created for that specific
    map action.
    

Problem conclusion

  • The fix is targeted for inclusion in IBM API Connect V5.0.6.3
    and V5.0.8.0.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI79712

  • Reported component name

    API CONNECT ENT

  • Reported component ID

    5725Z2201

  • Reported release

    50X

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-07-05

  • Closed date

    2017-08-23

  • Last modified date

    2017-08-23

  • 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":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"50X","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
23 August 2017