Changed:
- Scanning is now skipped for blobs that have a related attachment that has been persisted in order to avoid scanning the same file multiple times. We assume that the file needs to be scanned only once during the first time it is being attached to a record because otherwise it would be re-scanned every time when the attached record is updated (in which case the file would not be changed, as if the file is changed, also the attached blob is changed).
Fixed:
- Skip antivirus scan for persisted blobs #39
- XAmzContentSHA256Mismatch when using active storage with s3 backend #36
Fixed:
- Manual scan is not working for File objects #32
Fixed:
- Issue with ActiveStorage file integrity check due to IO position change after the virus check
Fixed:
- Issue related to the EICAR test scanner. Related to #16
Support for Rails 7
Changed:
- The minimum Ruby version is now set to 2.7 as it is a requirement of Rails 7
Fixed:
- Backport: Issue with ActiveStorage file integrity check due to IO position change after the virus check
Fixed:
- Backport: Issue related to the EICAR test scanner. Related to #16
Changed:
- Minimum Ruby version is now set to 2.5
Fixed:
- Issue related with scanning files with CarrierWave storage engine using remote storage engines such as Fog. Related to #9
Support for Rails 6
The ActiveStorage storage engine has been updated and partly rewritten due to changes in its API. The new API introduces a changes concept in the library which this update takes in to account. In the new API, the blobs will not get uploaded to the storage service before the validations have been successful, which led to rethinking how this storage engine works in Ratonvirus.
Fixed:
- Backport: Issue related with scanning files with CarrierWave storage engine using remote storage engines such as Fog. Related to #9
Fixed:
- Rescue file not found exception for blob.download #2
Initial public release.