Skip to content

watchfs: while uploading file with content, sometimes the file gets uploaded with empty content #2026

Closed

Description

@saw-jan

The request to upload a file with some content succeeds, but the file doesn't contain any content.

  1. Upload test.txt with content content
  2. Check uploaded file -> empty content ❌

This case can be reproduced consistently in the CI.
Example builds;

  Scenario: move file to folder                                                                                           # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/collaborativePosix/collaborativePosixFS.feature:104
    Given user "Alice" has uploaded file with content "content" to "test.txt"                                             # FeatureContext::userHasUploadedAFileWithContentTo()
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (1)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (2)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (3)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (4)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (5)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (6)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (7)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (8)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (9)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (10)...
      │ 
      The content was expected to be 'content', but actually is ''. HTTP status was 200
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
      -'content'
      +''

Activity

  1. added theissue type on Dec 15, 2025
  2. saw-jan commented on Dec 16, 2025

    @saw-jan
    ContributorAuthor
  3. saw-jan commented on Dec 16, 2025

    @saw-jan
    ContributorAuthor

    closing this in favor of #2036

  4. moved this from Qualification to Done in OpenCloud Team Boardon Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions