0
votes

Here's the scenario:

  1. Android device install WebResource Encrypt MFP APP.
  2. Direct update web resource.
  3. Restart this APP [ onDestory() -> onCreate() ]
  4. Fail to connect MobileFirst8 Server

The logcat info: enter image description here

We enable the follow features:

  1. Certificate pinning
  2. WebResource encrypt(mfpdev app webencrypt).

MobileFirst server version :

8.0.0.00-20170901-1903

Cordova MFP plugin version :

  1. cordova-plugin-mfp 8.0.2017082110
  2. cordova-plugin-mfp-push 8.0.2017082110

Update 1:

Even if we did not Direct Update web resource, just restart this app will fail to connect MobileFirst server.

The test scenario:

  1. cordova prepare
  2. mfpdev app webencrypt (with certificate pinning)
  3. debug on android device
  4. first run works fine. but fail to connect when reload this app

Here's the device log when APP restart: enter image description here

MFP server version : 8.0.0.00-20170901-1903

mfpdev-cli version : 8.0.0-2017080206

cordova-plugin-mfp version : 8.0.2017090705

device info : Android 7.0

Test project source code : GitHub link

3
If you do not enable webresource encyrption, does it work for you? Or is it only when webresource encryption is enabled? - Vivin K
without web resources encryption,it works - DannyYang
For good measure, can you try with the latest client side plugin - 8.0.2017090705 - Vivin K
We have tried the latest client side plugin. but it still fail to connect MFP server(check Update 1) - DannyYang
Can you please open a PMR with IBM to get this investigated. Quote this SO post as reference - Vivin K

3 Answers

0
votes

Please check if the certificate you are looking for is available in the 'certificates' folder. The error message suggests that the certificate does not exist in the specified location.

0
votes

The case of direct update not working when WebResourcesEncryption is enabled, has been fixed via APAR PI84522:

Install the latest iFix to resolve the issue.

0
votes

The case has been fixed via PI88636

Use cordova-plugin-mfp 8.0.2017102115 to resolve the issue.