Configure files_antivirus with clamav/ICAP option reqmod or respmod
Upload a file
Expected behaviour
According to rfc3507, ICAP client should take the data stream from the icap server output.
In case the ICAP server is doing modification to the original file like "content disarm reconstruction" or conversion to different type of file like docx to pdf, file_antivirus addon has to write back the modified file.
Please refferer to: https://datatracker.ietf.org/doc/html/rfc3507
There are multiple threat extraction solution like Opswat or checkpoint sandblast that can run as icap server and can scan and sanitize or disarm files.
Actual behaviour
File that is uploaded to Nextcloud after beein scanned and modified by icap server is not the "disarmed file"
Steps to reproduce
Expected behaviour
According to rfc3507, ICAP client should take the data stream from the icap server output.
In case the ICAP server is doing modification to the original file like "content disarm reconstruction" or conversion to different type of file like docx to pdf, file_antivirus addon has to write back the modified file. Please refferer to: https://datatracker.ietf.org/doc/html/rfc3507
There are multiple threat extraction solution like Opswat or checkpoint sandblast that can run as icap server and can scan and sanitize or disarm files.
Actual behaviour
File that is uploaded to Nextcloud after beein scanned and modified by icap server is not the "disarmed file"
Server configuration
Not Relevant
files_antivirus version 5.0.0