Original Message:
Sent: Fri October 11, 2024 07:24 AM
From: Hermanni Pernaa
Subject: Antivirus actions virus scan messages via ICAP server.
Hi Vijaya,
I have never tried to use ICAP ation with multipart. We have always just sent the actual file that needs to be scanned in binary format to the ICAP server. For example, the attachment comes in as base64 encoded payload in JSON or XML message. The base64 encoded file content is extracted, decoded and then sent to the ICAP server. The response from our ICAP server contains the analysis results in the HTTP headers. Decoding of base64 content is done just simply using binary transform action and base64Binary.ffd as output mapping. Hope this helps.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dp="http://www.datapower.com/extensions" extension-element-prefixes="dp"> <dp:output-mapping href="base64Binary.ffd" type="ffd"/> <xsl:template match="/"> <xsl:copy-of select="."/> </xsl:template></xsl:stylesheet>
------------------------------
Hermanni Pernaa
Solutions Architect
Digia Plc
Helsinki
Original Message:
Sent: Thu October 10, 2024 02:45 PM
From: vijaya k
Subject: Antivirus actions virus scan messages via ICAP server.
Requesting inputs over here please .
I would like to understand does Data power support multipart/form-data for Symantec anti virus action? Can someone please provide more information on what type of media types does data power support for Antivirus actions virus scan messages via ICAP server.I have tried below scenorio's
1)Scan entire message.
I have MPG with request Type and response Type set to non xml and in processing rule with antivirus action to . When testing through soapui, I have selected mediatype as multipart/formdata and I have an attachment of PDF file and also I have Json message in the body. I have enabled the probe in the call being made to Symantec from Processing rule I see empty body. I am not sure if the request body along with attachments is being sent to Symantec or not. Symantec Team has confirmed they received them as .MSG file.
2)Scan all attachments
I have MPG with request Type and response Type set to non xml and in processing rule with antivirus action to . When testing through soapui, I have selected mediatype as multipart/formdata and I have an attachment of PDF file and also I have JSON message in the body. I have enabled the probe, , I don't see any call being made to Symantec. Why is Symantec not receiving calls, as the only change I made was change from Scan entire message to Scan all attachments.
------------------------------
vijaya k
Original Message:
Sent: Tue October 08, 2024 10:51 PM
From: vijaya k
Subject: Antivirus actions virus scan messages via ICAP server.
We have a processing policy in MPG with with Anti Virus action via ICAP server .I am tested below 2 test cases.
1)Scan entire message.
I have MPG with request Type and response Type set to non xml and in processing rule with antivirus action to . When testing through soapui, I have selected mediatype as multipart/formdata and I have an attachment of PDF file and also I have Json message in the body. I have enabled the probe in the call being made to Symantec from Processing rule I see empty body. I am not sure if the request body along with attachments is being sent to Symantec or not.
I would like to understand does Data power support multipart/form-data for Symantec anti virus action? Can someone please provide more information on what type of media types does data power support for Antivirus actions virus scan messages via ICAP server.
------------------------------
vijaya k
------------------------------