IBM Worklight 6.1 - 升级到v6.1后,iOS 5中的适配器调用失败 [英] IBM Worklight 6.1 - Adapter invocation failing in iOS 5 after upgrading to v6.1

查看:106
本文介绍了IBM Worklight 6.1 - 升级到v6.1后,iOS 5中的适配器调用失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们还开发了一个带有Native页面的基于Worklight的混合应用程序。我们的起始页面是一个本机页面,我们从中调用适配器。

We have developed a Worklight-based Hybrid application with Native pages as well. Our start page is a native page from which we are invoking an adapter.

升级到Worklight 6.1后,此适配器调用现在总是在iOS 5中失败,但在iOS 6和iOS 7中继续正常运行。

After upgrading to Worklight 6.1, this adapter invocation is now always failing in iOS 5, however continues to function correctly in iOS 6 and iOS 7.

当适配器调用失败时,它会返回原始HTML作为响应:适配器失败响应

When the adapter invocation fails, it returns raw HTML as the response: Adapter Failure Response.

在Xcode控制台中,这是我们看到的错误:

In Xcode Console this is the error we see:


[错误]工作灯: - [WLRequest requestFailed:]:338 :: Status code ='404'
error ='(null)'[ERROR]工作灯: - [WLClient
onInvokeProcedureFailure:userInfo:]:696 :: response string = 从适配器返回的HTML

Worklight 6.0.0.x中的相同应用程序在iOS 5,6和7中正常运行。

The same application in Worklight 6.0.0.x works OK in iOS 5, 6 and 7.

此示例应用程序可用于查看错误。

推荐答案

从进行的测试看来,适配器调用似乎仅失败在iOS 5中,因为发送的请求包含双斜杠,而在iOS 6和7中它包含一个斜杠。

From tests made, it appears that the adapter invocation fails only in iOS 5 because the request sent contains double-slashes whereas in iOS 6 and 7 it contains one slash.

这可以在Wireshark中验证:

This can be verified in Wireshark:


  • 这是一个缺陷

  • 没有适用的解决方法

修复缺陷后,可通过 IBM Fix Central ,以及客户需要打开以完成此修复的PMR。

Once the defect is fixed, it will be available via IBM Fix Central, as well as in the PMR that your customer needs to open anyway to get this fixed.

这篇关于IBM Worklight 6.1 - 升级到v6.1后,iOS 5中的适配器调用失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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