下载更新后,MobileFirst 8.0 Direct Update失败 [英] MobileFirst 8.0 Direct Update failing after downloading the updates

查看:66
本文介绍了下载更新后,MobileFirst 8.0 Direct Update失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MFP8,我的应用程序是在Android平台上运行的基于Cordova的混合应用程序(没有本机代码,只有HTML,JS和CSS)

I am using MFP8 and my application is a Cordova based hybrid app running on Android platform (no native code only HTML, JS and CSS)

在MFP8中,根据说明,WL.connect()不再存在,并且调用不受保护的资源将不会触发直接更新.因此,我在HTTP适配器中创建了一个安全方法,然后调用它.我还编写了一个质询处理程序(基本上什么也不做,只是返回true),并且适配器调用成功,其余应用程序都可以正常工作.

In MFP8, according to documentation WL.connect() is not there anymore and calling an unprotected resource will not trigger Direct Update. So I created a secured method in my HTTP adapter and I call it. I also wrote a challenge handler (which basically does nothing just returns true,) and the adapter call is successful and rest of my application works fine.

注意:挑战处理程序适配器必须用Java编写,我遵循了这些步骤.

Note: The challenge handler adapter must be written in Java and I followed those steps.

现在,我对HTML进行更改,执行"cordova build android",然后调用"mfpdev app webupdate".

Now I make changes to my HTML do a "cordova build android" and then call the "mfpdev app webupdate".

一切都成功,并且我在MFP8控制台中看到了更新的Web资源.现在,我启动我的应用程序,然后单击一个按钮以调用虚拟安全方法,并触发直接更新.它会下载资源,并在安装结束后显示一条错误消息 更新失败" 直接更新失败."并显示选项关闭"和重新加载".

Everything is successful and I see the web resources updated in the MFP8 console. Now I launch my app and click a button to call the dummy secured method and that triggers the Direct Update. It downloads the resources and at the end after installing thows an error message "Update Failed" "Direct update failure." and shows options "CLOSE" and "RELOAD".

我点击重新加载",它与上述操作相同.

I click "RELOAD" it does the same thing as above.

我单击关闭",将引发错误消息,错误代码为"CHALLENGE_HANDLING_CANCELED",错误消息为挑战处理程序操作已取消".

I click "CLOSE" it throws an error message with error code "CHALLENGE_HANDLING_CANCELED" and error message "Challenge handler operation was cancelled".

注意:没有直接更新时,我没有收到此消息,一切正常.

Note: I do not get this message when there is no Direct Update, all works fine.

我看到有针对MFP8的修复程序(8.0.0.0-MFPF-DevKit-Windows-IF2016070718),我从FixCentral下载了该修复程序,并在本地开发框中更新了MFP8服务器,并更改了config.xml以更新应用程序到新版本,然后再次进行部署.

I saw there is a fix for MFP8 (8.0.0.0-MFPF-DevKit-Windows-IF2016070718) and I downloaded that from FixCentral and updated my MFP8 server in my local dev box and changed the config.xml to update the application to a new version and did the deployment once again.

没有更改仍会得到相同的错误消息.

No changes still getting the same error message.

任何帮助将不胜感激

-A

推荐答案

首先:此处介绍了v8.0之前的MFP客户端项目的迁移过程:

first: the process of migrating a pre-v8.0 MFP client project is described here: http://www.ibm.com/support/knowledgecenter/en/SSHS8R_8.0.0/com.ibm.worklight.upgrade.doc/dev/c_convert2cordova.html

第二:该特定项目中的问题是 Cordova的config.xml在mfp:directUpdateAuthenticityPublicKey元素内包含错误的值("mfp-pubkey").一旦取消该值,直接更新就可以正常工作. 遵循 http://www.ibm.com/support/knowledgecenter/zh-CN/SSHS8R_8.0.0/com.ibm.worklight.dev.doc/admin/t_authenticated_direct_update.html?view=kc#t_authenticated_dir_update 如何正确填写正确的密钥.

second: the problem in this specific project was that the Cordova's config.xml contained a wrong value ("mfp-pubkey") inside mfp:directUpdateAuthenticityPublicKey element. Once nullified that value , Direct update started to work fine. follow http://www.ibm.com/support/knowledgecenter/en/SSHS8R_8.0.0/com.ibm.worklight.dev.doc/admin/t_authenticated_direct_update.html?view=kc#t_authenticated_dir_update on how to properly fill the correct key.

这篇关于下载更新后,MobileFirst 8.0 Direct Update失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆