工作灯 WL。带有 DELETE 方法的 Server.invokeHttp() 不接受查询参数



我有一个Worklight适配器,它通过WL.Server.invokeHttp()调用RESTful方法。使用http DELETE方法时,不会添加查询字符串参数。我使用Worklight 6.0。

输入设置如下:

{
   "headers": {
      "Accept": "application/json",
      "Authorization": "Bearer xxxxxxxxxxxxxxxx",
      "Content-Type": "application/json"
   },
   "method": "delete",
   "parameters": {
      "messageIds": "r11118,r11119"
   },
   "path": "/myMessages/v2/messages" 
}
and called like: var result=WL.Server.invokeHttp(input);

但我可以从Wireshark中看到,查询参数没有被添加:

  DELETE /myMessages/v2/messages HTTP/1.1rn

如果我所做的只是将方法更改为GET,那么参数就在Wireshark:上

  GET /myMessages/v2/messages?messageIds=r11118%2Cr11119 HTTP/1.1rn

听起来像个bug。我们将对此进行调查,如果得到确认,将在下一版本中进行修复。

最新更新