Hi,
We have an issue with ICConnector. We set/get EDU fields containing values with special national characters. The setting EDU field works fine. When we get the same EDU field, the special characters go wrong. We have analyzed the AIC integration components and found the followings:
- The AIC HTTPConnector sends the response with correct UTF-8 charaters, however there is no header for charset in the HTTP message. Here is the request/response TCP messages captured by Wireshark:
ICConnector get EDU request:
POST /httpvox.htm HTTP/1.1
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.8.0_152
Host: 10.12.85.100:9170
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-type: application/x-www-form-urlencoded
Content-Length: 114
action=start_script&script=httpvox.iccmd&command=getedu&eduid=61e1755f000000000a0c5164234a0002&test_field_1=%22%22
Response from AIC HTTPConnector:
HTTP/1.0 200 OK
Date: p?ntek, 14-jan.-22 13:06:42 GMT
Server: Avaya HTTP Channel
MIME-version: 1.0
Content-Type: text/html
Content-Length: 169
<count>4</count><loginid></loginid><test_field_1>árvízt?r? tükörfúrógép</test_field_1><sys_scripttimeout>600</sys_scripttimeout><returncode>SUCCESS</returncode>
- The problem starts here, the response seems wrong in ICConnector log, and the value is sent back to OD incorrectly:
14/01/2022 13:54:26:231 DEBUG - ICConnectorServer.httpRequest: url is:http://10.12.85.100:9170/httpvox.htm
14/01/2022 13:54:26:231 DEBUG - ICConnectorServer.httpRequest: posting:action=start_script&script=httpvox.iccmd&command=getedu&eduid=61e1727f000000000a0c5164234a0002&test_field_1=%22%22
14/01/2022 13:54:26:493 DEBUG - ICConnectorServer.httpRequest: response took:262ms for URL:http://10.12.85.100:9170/httpvox.htm
14/01/2022 13:54:26:493 DEBUG - ICConnectorServer.httpRequest: responseCode:200
14/01/2022 13:54:26:493 DEBUG - ICConnectorServer.httpRequest: response is:<count>4</count><loginid></loginid><test_field_1>??rv??zt??r?? t??k??rf??r??g??p</test_field_1><sys_scripttimeout>600</sys_scripttimeout><returncode>SUCCESS</returncode></body></html>
14/01/2022 13:54:26:493 DEBUG - ICConnectorManager.jobCompleted: Response back: responseType=getvdu.response&reqID=76-996&field="test_field_1"|"??rv??zt??r?? t??k??rf??r??g??p" for req: 76-996
version:
ICConnector 07.10.12.02
AIC HTTPConnector 7.3.8.64
Regards,
Istvan
|