IBM Support

PI31269: UPLOADING AN APPLICATION OR AN ADAPTER TO THE WORKLIGHT CONSOLE THRU MULTI-PROTOCOL GATEWAY IN DATAPOWER MAY FAIL

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Uploading an application or an adapter to the Worklight Console
    through Multi-Protocol Gateway in DataPower may fail.
    
    On the server side, the following stack trace is emitted in the
    application server log:
    ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper
    service SRVE0068E: An exception was thrown by one of the service
    methods of the servlet [ManagementServlet] in application
    [Worklight_Administration_Service_DP63]. Exception created :
    [java.lang.StringIndexOutOfBoundsException
        at java.lang.String.substring(String.java:1150)
        at
    org.apache.wink.common.internal.providers.multipart.MultiPartPar
    ser.parseHeaders(MultiPartParser.java:270)
    
    The problem is triggered by MPG adding double quotation marks to
    the MIME multipart message's boundary in the Content-type
    header.
    
    For example, this header
    multipart/form-data;
    boundary=---------------------------2925426766838
    becomes
    multipart/form-data;
    boundary="---------------------------2925426766838"
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Worklight console users that have the rights to upload       *
    * applications and adapters                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Uploading applications or adapters with the Worklight        *
    * Console when using the Datapower Multi Protocol Gateway      *
    * fails with a StringIndexOutOfBoundsException.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * NONE                                                         *
    ****************************************************************
    

Problem conclusion

  • Problem arises because Datapower MPG encloses the boundary of
    the multipart form data in the HTTP Content header between
    double quotes that is not supported by Wink.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI31269

  • Reported component name

    WL/MFPF CONSUME

  • Reported component ID

    5725I4301

  • Reported release

    620

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-12-10

  • Closed date

    2015-01-13

  • Last modified date

    2015-01-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

    WL/MFPF CONSUME

  • Fixed component ID

    5725I4301

Applicable component levels

  • R620 PSY

       UP

  • R630 PSY

       UP

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

Document Information

Modified date:
14 October 2021