opencloud icon indicating copy to clipboard operation
opencloud copied to clipboard

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

Open rhafer opened this issue 1 month ago • 1 comments

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 https://github.com/opencloud-eu/reva/pull/414 (once I got that one sorted out).

Originally posted by @rhafer in #50

rhafer avatar Nov 18 '25 14:11 rhafer

Testing a fix in https://github.com/opencloud-eu/opencloud/pull/1868

rhafer avatar Nov 18 '25 16:11 rhafer