IBM Support

PI37818: MFP COMMAND LINE INTERFACE (CLI) UNABLE TO PASS JSON OBJECT WITH ADAPTER CALL COMMAND

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When specifying JSON object(s) as the "arguments" parameter
    value to the "mfp adapter call" command, an "Unexpected token"
    syntax error is displayed.  For example, an "Unexpected token %"
    syntax error will result when specifying the JSON object
    {"a":"b"} as the "arguments" parameter value.
    

Local fix

  • Specify the JSON Object parameters, providing a String, Number,
    Boolean or
    Array of Strings, Numbers, Booleans, and/or sub-Arrays.  For
    example, instead of specifying {"a":"b"}, specify ["a", "b"].
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * MobileFirst Foundation Platform developers who develop, test *
    * and verify MobileFirst adapters.                             *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When specifying JSON object(s) as the "arguments" parameter  *
    * value of the the "mfp adapter call" command,  and            *
    * 'Unexpected token" syntax error is displayed.   For example, *
    * an "Unexpected token %" syntax error will result when        *
    * specifying the JSON object {"a":"b"} as the "arguments"      *
    * parameter value.                                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • The code was changed to URL-encode the arguments value after the
    value is parsed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI37818

  • Reported component name

    WL/MFPF CONSUME

  • Reported component ID

    5725I4301

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-03-25

  • Closed date

    2015-04-06

  • Last modified date

    2015-04-06

  • 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

    WL/MFPF CONSUME

  • Fixed component ID

    5725I4301

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"700","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 October 2021