When detecting the exception message specific to encountering large files, store in scanFailedAttachments map a new Exception containing the desired message "File size too large"
Upgrade licensing app to version 1.22.1
Also implemented issue #25
When encountering a file larger than the configured size at scheduled scan time, the report mail will look like so:
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.
When encountering a file larger than the configured size at scheduled scan time, the report mail will look like so:
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.