IBM Support

LI81838: MIGRATION: PORT-TO-APIGW OPTIMIZED GWS OPTION WILL BUILD INVALID CONTEXT.SET CALL

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

  • When migrating APIs to DataPower API Gateway (port-to-apigw)
    using the optimize-gws option, invalid context.set calls are
    created.
    You get:
    ---
    context.set('message.headers.X-MYHEADER',
    context.get('api.org.name'), 'set');
    ---
    instead of
    ---
    context.set('message.headers.X-MYHEADER'',
    context.get('api.org.name'));
    ---
    

Local fix

  • Manually correcting the API post migration with the
    port-to-apigw command.
    

Problem summary

  • `apim.setvariable('foo', apim.getvariable('foo2'), 'set')`
    incorrectly converted to context.set()
    

Problem conclusion

  • Fix allows AMU to correctly convert setvariable to context.set
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI81838

  • Reported component name

    API CONNECT ENT

  • Reported component ID

    5725Z2201

  • Reported release

    A0X

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-11-11

  • Closed date

    2020-12-10

  • Last modified date

    2020-12-10

  • 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

  • RA0X PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A0X","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 September 2021