I have setup an ICAPS configuration for my Zscaler proxy to send data over Stunnel to Web Prevent following Symantec's documentation. When I try to send some data over ICAPS, I am getting the error "Multipart message body is empty"
I have pasted the logs from FileReader and an ICAP trace output. Any help will be highly appreciated.
Thanks
FileReader Log
============================================================================
Jun 5, 2018 5:53:01 PM com.vontu.messaging.FileReader start
INFO: Starting statistics manager
Jun 5, 2018 5:53:01 PM com.vontu.messaging.FileReader start
INFO: (DETECTION.2) Detection is now running
Jun 5, 2018 5:53:01 PM com.vontu.logging.LocalLogWriter write
INFO: File Reader started.
Jun 5, 2018 5:53:11 PM com.vontu.icap.RequestDispatcher run
INFO: (ICAP_CONNECTION.1201) Connection (cid=1) opened from host(127.0.0.1:38446).
Jun 5, 2018 5:53:11 PM com.vontu.icap.RequestDispatcher$ConnectionStatsManager logConnectionStats
INFO: (ICAP_CONNECTION.1203) Connection stat: REQMOD=0, RESPMOD=0, OPTIONS=0, OTHERS=1.
Jun 5, 2018 5:54:18 PM com.vontu.icap.RequestDispatcher run
INFO: (ICAP_CONNECTION.1201) Connection (cid=2) opened from host(127.0.0.1:38448).
Jun 5, 2018 5:54:18 PM com.vontu.icap.RequestDispatcher$ConnectionStatsManager logConnectionStats
INFO: (ICAP_CONNECTION.1203) Connection stat: REQMOD=0, RESPMOD=0, OPTIONS=0, OTHERS=2.
Jun 5, 2018 5:54:18 PM com.vontu.protocols.http.AbstractHttpMessageHandler generateCorruptedMessage
WARNING: Handling corrupted message
java.io.IOException: Multipart message body is empty
at com.vontu.protocols.http.MultiPartMIME.<init>(MultiPartMIME.java:109)
at com.vontu.protocols.http.MultiPartMIME.<init>(MultiPartMIME.java:73)
at com.vontu.protocols.http.MultiPartFormData.<init>(MultiPartFormData.java:56)
at com.vontu.protocols.http.MultiPartFormData.<init>(MultiPartFormData.java:51)
at com.vontu.protocols.http.MultiPartFormProcessor.processContent(MultiPartFormProcessor.java:50)
at com.vontu.protocols.http.HttpMessageHandler.processMessage(HttpMessageHandler.java:169)
at com.vontu.protocols.http.AbstractHttpMessageHandler.handle(AbstractHttpMessageHandler.java:216)
at com.vontu.protocols.http.jetty8.HttpMessageProcessor.processStream(HttpMessageProcessor.java:75)
at com.vontu.protocols.WEBmailProcessor.process(WEBmailProcessor.java:159)
at com.vontu.protocols.MultiStreamProcessor.processStream(MultiStreamProcessor.java:63)
at com.vontu.protocols.L7Dispatcher.dispatchStream(L7Dispatcher.java:123)
at com.vontu.protocols.L7Dispatcher.handleContentStream(L7Dispatcher.java:107)
at com.vontu.protocols.L7Dispatcher.processMessage(L7Dispatcher.java:67)
at com.vontu.messaging.chain.MessageChain.processMessage(MessageChain.java:194)
at com.vontu.messaging.chain.MessageChain.run(MessageChain.java:118)
at java.lang.Thread.run(Thread.java:748)
Jun 5, 2018 5:54:28 PM com.vontu.icap.RequestProcessor run
INFO: (ICAP_CONNECTION.1202) Connection (cid=2) closed(EOF).
Jun 5, 2018 5:54:28 PM com.vontu.icap.RequestDispatcher$ConnectionStatsManager logConnectionStats
INFO: (ICAP_CONNECTION.1203) Connection stat: REQMOD=0, RESPMOD=0, OPTIONS=0, OTHERS=1.
ICAP Trace output
=========================================================================================
>> 1528225085551 2 127.0.0.1:1344 127.0.0.1:38316 <<
<< 1528225085707 51
REQMOD icap://1.2.3.4:11344/reqmod ICAP/1.0
<< 1528225085707 27
Host: 1.2.3.4:11344
<< 1528225085707 23
User-Agent: ZICAP/1.0
<< 1528225085707 39
Encapsulated: req-hdr=0, req-body=650
<< 1528225085707 12
Allow: 204
<< 1528225085708 29
X-Client-IP: 5.6.7.8
<< 1528225085708 68
X-Authenticated-User: TG9jYWw6Ly9xYXZha2lsQHN0YXRlc3RyZWV0LmNvbQ==
<< 1528225085708 2
<< 1528225085709 650
POST /https-post/ HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: https://dlptest.com/https-post/
Accept-Language: en-US
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Content-Type: multipart/form-data; boundary=---------------------------7e2b6520512
Accept-Encoding: gzip, deflate
Host: dlptest.com
Content-Length: 749
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: _wpfuuid=194240c7-7db7-4285-932e-efaaefe5ca24; _ga=GA1.2.1689609950.1528205076; _gid=GA1.2.2119822001.1528205076; _sm_au=aaaaaaaaaaaaaaaaaaaa; _gat=1
X-Forwarded-For: 192.0.0.129
Transfer-Encoding: chunked
<< 1528225085710 5
2ed
<< 1528225085710 749
-----------------------------7e2b6520512
Content-Disposition: form-data; name="wpforms[fields][2]"
Classification : HC
-----------------------------7e2b6520512
Content-Disposition: form-data; name="wpforms_513_3"; filename=""
Content-Type: application/octet-stream
-----------------------------7e2b6520512
Content-Disposition: form-data; name="wpforms[id]"
513
-----------------------------7e2b6520512
Content-Disposition: form-data; name="wpforms[author]"
1
-----------------------------7e2b6520512
Content-Disposition: form-data; name="wpforms[post_id]"
53
-----------------------------7e2b6520512
Content-Disposition: form-data; name="wpforms[submit]"
wpforms-submit
-----------------------------7e2b6520512--
<< 1528225085710 2
<< 1528225085710 3
0
<< 1528225085710 2
>> 1528225085765 70
ICAP/1.0 204 No content
Cache-Control: no-cache
ISTag: "Vontu15.0"
>> 1528225085765 1
<< 1528225095435 0
>>Connection closed<<