Skip to content

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

Closed

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

Activity

  1. self-assigned this
    on Nov 18, 2025
  2. moved this from Qualification to In Progress in OpenCloud Team Boardon Nov 18, 2025
  3. rhafer commented on Nov 18, 2025

    @rhafer
    MemberAuthor

    Testing a fix in #1868

  4. added a commit that references this issue on Oct 13, 2026
    4245013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions