xwikisas / application-antivirus

Keeps your XWiki instance safe by scanning file attachments for viruses or malware.
GNU Lesser General Public License v2.1
0 stars 1 forks source link

Scheduled scan report displays "IOException: Broken pipe" error for files too large to be scanned #24

Closed Enygma2002 closed 2 years ago

Enygma2002 commented 3 years ago

The ClamAV server can control the maximum allowed size of file to be scanned via network through the following setting:

Attempting to scan a file larger than the server limit will result in the server closing the connection, resulting in a IOException: Broken pipe error on the antivirus application.

This can happen during:

The problem right now is that this error is quite ambiguous in the report and we could do a better job of displaying it in a more user friendly mode. Even if this exception can happen in other network related cases, we could simply say File size too large.

aubincleme commented 2 years ago

Hi,

We are getting several messages from customers about this issue on the XWiki Cloud platform. @oanalavinia / @mflorea / @trrenty the option mentioned by Edy about the fact of putting "File size too large" in the report email seems nice, maybe we could consider adding it in a later release ?