1

我正在使用 IBM Worklight 6.2 CLI 工具在我的适配器上创建和调用一个过程。当我传入一个包含空格字符的参数时,我得到一个错误:

wl invoke
[?] Which procedure do you want to invoke? submitNotification
[?] Enter the comma-separated parameters: "user", "hello hello"
Invoking PushAdapter:submitNotification...
Arguments:
[
  "user",
  "hello hello"
]
Invocation result:
Status Code: 505 HTTP Version Not Supported

服务器上没有任何记录,跟踪文件中也没有有用的消息。如果我传递没有空格字符的参数,则不会发生这种情况。

4

1 回答 1

1

This is a bug. Next fixpack you contain the fix. Or if you are an IBM customer you can open PMR to get an ifix when is available.

To workaround encode the spaces with '%20'

$ wl invoke
[?] Which procedure do you want to invoke? submitNotification
[?] Enter the comma-separated parameters: "user", "hello%20hello"
Invoking PushAdapter:submitNotification...
Arguments:
[
  "user",
  "hello%20hello"
]
Invocation result:
{

...

于 2014-08-12T18:08:16.483 回答