# Bug OP-17918 - Virus scanning is not triggered after uploading a file to S3 storage

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-17918

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Attachments |
| Target versions | 16.5.0 |
| Observed in versions | 16.4.0 |
| Sprint | 16.5.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.4.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Tizian Rößler |
| Accountable |  |
| Product manager |  |
| Developers | Christophe Bliard |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Use a on-premises installation (option not available on cloud, and it's an enterprise add-on, see [doc](https://www.openproject.org/docs/system-admin-guide/files/attachments/virus-scanning/))

2.  Use S3 storage for storing attachments (see [doc](https://www.openproject.org/docs/installation-and-operations/configuration/#attachment-storage-type))

3.  Enable Virus scanning in Administration \> Files \> Attachments \> Virus Scanning

4.  Save
    
    1.  it will rescan all attachments that have not been previously scanned

5.  Go back to the Virus scanning tab and click Save button again
    
    1.  it will simply say "ok" as all uploaded files have been scanned

6.  Upload a file to a work package

7.  Go back to administration \> Virus scanning and click Save button

### What is the buggy behavior?

  - It triggers a scan of the last attachment added

### What is the expected behavior?

1.  It should simply display "ok": the attachment should already have been scanned after the upload completes

### 

### 

### 

### Environment information

**OpenProject installation type**

  - Packaged installation with Enterprise license

**OpenProject version**

*v16.4.x*
