Skip to content

posixfs/antivirus: infected file during parallel upload does not revert to old file correctly #1871

@rhafer

Description

@rhafer

Here we got a 500 https://ci.opencloud.eu/repos/3/pipeline/382/64 in apiAntivirus/antivirus.feature:334

The test has this:

    And user "Alice" has uploaded file with content "hello world" to "test.txt"
    And user "Alice" has uploaded file with content "hello nepal" to "test.txt"
    When user "Alice" uploads file with content "X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*" to "test.txt" using the WebDAV API

@individual-it @ScharfViktor So it does 3 uploads in a short time. For that to happen in a deterministic way (i.e. assure that the Virus is actually the latest revision and make sure that "hello world" is the oldest revision you would need to make sure that the postprocessing of each file finished before the next one is uploaded. Otherwise one file might "overtake" the other(s) during postprocessing.

Independent of that, the 500 Status should of course not happen. I hope that is going to be fixed with opencloud-eu/reva#414 (once I got that one sorted out).

Originally posted by @rhafer in #50

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions