Skip to content

No notification triggered for .zip virus file #382

@prashant-gurung899

Description

@prashant-gurung899

Describe the bug

When eicar_com.zip is uploaded, no notification is triggered. But notification is triggered for eicar.com virus file.

Steps to reproduce

  1. Upload eicar_com.zip.
curl -u admin:admin "https://localhost:9200/ocs/v2.php/apps/notifications/api/v1/notifications?format=json" -vk | jq

Expected behavior

Expected to get notification like: Virus found in eicar_com.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1

Actual behavior

No notification for eicar_com.zip file.

noNotif.webm
{
  "ocs": {
    "meta": {
      "message": "",
      "status": "",
      "statuscode": 200
    },
    "data": null
  }
}

Setup

Run clamav:

docker run -d -p 3310:3310 owncloudci/clamavd

Run opencloud:

PROXY_ENABLE_BASIC_AUTH=true OCIS_LOG_LEVEL=debug IDM_CREATE_DEMO_USERS=true OC_INSECURE=true ANTIVIRUS_SCANNER_TYPE="clamav" ANTIVIRUS_CLAMAV_SOCKET="tcp://host.docker.internal:3310" POSTPROCESSING_STEPS="virusscan" OC_ASYNC_UPLOADS=true OC_ADD_RUN_SERVICES="antivirus" opencloud/bin/opencloud server
Details

OpenCloud 1.0.0+22b52a776 Community
OpenCloud Web UI 1.0.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions