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 #32

Closed trrenty closed 2 years ago

trrenty commented 2 years ago

When encountering a file larger than the configured size at scheduled scan time, the report mail will look like so:

image

When uploading a file larger than the configured size, a WARNING will be displayed in the console: 2022-06-17 13:22:30,414 [http://localhost:8080/xwiki/bin/upload/VirusTest/WebHome] WARN ttachmentUploadedEventListener - Attachment [Attachment xwiki:VirusTest.WebHome@clamav-0.105.0.tar.gz] is larger than [25MB] and will be skipped during event [org.xwiki.bridge.event.DocumentUpdatingEvent] by user [xwiki:XWiki.superadmin]. The file will be scanned during the scheduled scan.