A fix is available
APAR status
Closed as program error.
Error description
The problem is that bootstrap.js attempts to look for the worklight directory at the same level as the main html page. If the main html page is within a subdirectory in www, then that will not be the correct path to the worklight directory. The problem is resolved by adding a function that finds where the cordova.js file is and using that as the path to the worklight directory in www. Version affected 7.x Initial Impact: Medium
Local fix
Ensure the worklight directory and main html page are at the same level in the directory structure.
Problem summary
**************************************************************** * USERS AFFECTED: * * Users who have a pure cordova application (ios or android) * * whose main html file is not in the top level of the www * * directory * **************************************************************** * PROBLEM DESCRIPTION: * * If the app's main html file is not in the top level of the * * www directory, then the bootstrap.js of the * * cordova-plugin-mfp fails with "mfp bootstrap failed to * * inject script" and the app doesn't load * **************************************************************** * RECOMMENDATION: * * - * ****************************************************************
Problem conclusion
The problem is that bootstrap.js attempts to look for the worklight directory at the same level as the main html page. If the main html page is within a subdirectory in www, then that will not be the correct path to the worklight directory. The problem is resolved by adding a function that finds where the cordova.js file is and using that as the path to the worklight directory in www.
Temporary fix
Comments
APAR Information
APAR number
PI52631
Reported component name
MFPF/WORKLIGHT
Reported component ID
5725I4301
Reported release
710
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-11-17
Closed date
2015-11-24
Last modified date
2015-11-24
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
MFPF/WORKLIGHT
Fixed component ID
5725I4301
Applicable component levels
R710 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
17 October 2021