Closed d-mankowski-synerise closed 1 year ago
Hmmm. That is interesting. CRA started "by hand" works as expected. There must be something wrong with the docker image itself.
❯ jq ".version" package.json
"1.1.3"
❯ curl -s -XPOST http://localhost:8080/api/v1/scan -F FILES=@package.json | jq
{
"success": true,
"data": {
"result": [
{
"name": "package.json",
"is_infected": false,
"viruses": []
}
]
}
}
❯ curl -s -XPOST http://localhost:8080/api/v1/scan -F FILES=@src/tests/eicar_com.zip | jq
{
"success": true,
"data": {
"result": [
{
"name": "eicar_com.zip",
"is_infected": true,
"viruses": [
"Win.Test.EICAR_HDB-1"
]
}
]
}
}
@d-mankowski-synerise dzięki Dominik za raport - w wolnej chwili popatrzę co jest nie tak z obrazem i postaram się wypchnąć taki który działa.
I build own image and getting the same result as the reporter's one.
Could you guys please test v1.1.4
version? It is already pushed to registry.
It's works! Thank you so much!
I also encountered the same phenomenon, using v1.1.3
.
It was improved by setting APP_MAX_FILE_SIZE
.
Everything works now, thanks for quick reaction :)
I ran docker-compose (simple
docker-compose up
) and CRA returns result as in the title. No matter what files I scanned, every time it returnednull
. When I changed image frombenzino77/clamav-rest-api
tobenzino77/clamav-rest-api:1.1.2
it works fine - hence, there must be some regression done lately.logs from containers: