Worklight 6.1“拒绝访问受保护的服务”将应用程序部署到App Store后 [英] Worklight 6.1 "access to protected services is denied" after app is deployed to App Store

查看:158
本文介绍了Worklight 6.1“拒绝访问受保护的服务”将应用程序部署到App Store后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将应用程序部署到 Apple App Store 。本地和设备测试都很顺利,但是当应用程序从 App store 加载到 iOS 7.1 设备上时,用户收到访问服务器已禁用 - 登录失败对话框,然后是纯白屏幕。

I have deployed an app to the Apple App store. Local and on device testing went fine, but when the app is loaded from the App store onto an iOS 7.1 device, the user receives a Access to Server is Disabled - Login Failed dialog, followed by a solid white screen.

查看电话控制台日志,出现以下错误:

Looking at the phone console log, the following error appears:

backboardd [31]<错误>:HID:'Rate Controlled'连接'<应用程序名称>'访问受保护的服务被拒绝。

在Apple开发者论坛上搜索和StackOverflow显示其他人在过去几周内有类似问题,但没有明确的决议。这个特别注意到同样的问题,它可能与Cordova有关: HID:'受控制的'连接'应用'对受保护服务的访问被拒绝

Searching on Apple developer forums and StackOverflow show others having similar issues over the past few weeks, but with no clear resolution. This one in particular notes the same issue and that it may be related to Cordova: HID: The 'Rate Controlled' connection 'app' access to protected services is denied

如果我关闭Worklight,应用程序提供标准的连接失败消息,并在离线模式下继续正常工作,但调用服务器适配器的任何功能除外。

If I turn off the Worklight Server, the app gives a standard Connection Failure message and continues to work properly in Offline Mode, except for any features that call server adapters.

服务器和Worklight Studio正在运行消费者版。

Server and Worklight Studio are running Consumer Edition.

不确定这是应用程序特定的代码问题,iOS中的权限问题,还是 Cordova iOS 7.1 (昨天的7.1.1显示同样的问题)。

Not sure if this is an app specific code issue, a permissions problem in iOS, or a core conflict between Cordova and iOS 7.1 (yesterday's 7.1.1 shows the same issue).

有什么想法吗?

推荐答案

事实证明6.1.0.1 fixpack安装没有正确完成。虽然在安装时看起来还不错,但如果仔细观察日志,则会有一半的错误。这可能是由于尝试升级已在6.1.0.1上部署的应用程序。由于服务器只部署了一个应用程序,我们取消部署并删除了应用程序和关联的war文件。这使得fixpack能够正确完成安装。

It turns out the 6.1.0.1 fixpack installation was not completing properly. While it looked ok at installation, if you watched the logs carefully, there were errors about halfway through. This may have been due to trying to upgrade a deployed app that was already on 6.1.0.1. Since the server only had the one app deployed, we undeployed and removed the app and associated war file. This allowed the fixpack to complete installation correctly.

接下来,在重新部署应用程序(相同的war文件)之后,我们仍然得到了受保护的服务错误,但它不再说速率控制。然后,设备错误日志开始报告版本问题。 App Store应用程序和服务器版本都应该是2.1,但在我们用2.0重新部署服务器版本后,应用程序开始与服务器和适配器通信。

Next, after re-deploying the app (same war file), to the server, we still got a protected services is denied error, but it no longer said "Rate Controlled". The device error log then started reporting a version issue. The App Store app and the server version were both supposed to be "2.1", but after we re-deployed the server version with "2.0", the app started communicating with the server and adapters.

最后,我们仍有一个问题,即iOS版本没有触发应用程序的直接更新(相同的代码,Android版本可以正常工作)。我们还没有需要更新,因此将在我们的下一个App Store推送中进行测试。

Finally, we still have an issue that the iOS version is not triggering direct updates for the app (same code, Android version does work properly). We have not yet needed an update, so will test this on our next App Store push.

这篇关于Worklight 6.1“拒绝访问受保护的服务”将应用程序部署到App Store后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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