Releases: ajilach/clamav-rest
Release 20250118
0.0.42 (2025-01-18)
Release 20250111
0.0.41 (2025-01-11)
Release 20250109
0.0.40 (2025-01-09)
New endpoint
This release introduces a new endpoint, /v2/scan
that will return a json array with results for the scanned files. See the documentation for more information about the response format.
Deprecation
With the release of this endpoint, the /scan
endpoint has been marked as deprecated. It will continue to function for backwards compatibility going forward but will eventually reach sunset. It returns response headers with deprecation information from this release.
Bug fix
A bug when using /scan
(and /v2/scan
) that returned a 200 OK
if the first file in a payload with multiple files, did not contain a detectable virus or malware, regardless if the following files were infected or not, is fixed in this issue.
Closed issues
#23 - When exceeding the MAX_FILE_SIZE
using the /scan
or /v2/scan
endpoints, the connection would just hang until the client reached timeout. This release now detects if the underlying clamav process gets this error and returns a 413 request entity too large
error.
#48 - the /v2/scan
endpoint formats all responses as json arrays to keep the behavior uniform. In the old /scan
endpoint, the client would receive one or more unrelated json objects. If a malformed formpost is sent, with a missing filename, it will return 422 Unprocessable Entity
. This error is probably not very likely to occur, since most clients are used at a higher level and this is already done in the library/client code, but before this release, the error was simply swallowed.
Updates
#53 - This release is built on Alpine 3.21 that is using the LTS release 1.4.1 of the ClamAV binary.
Finishing notes
We have tried to keep backwards compatibility intact, but if issues arise, open an issue about it.