Skip to content

decomposedfs: initial upload creates file revision already #3059

Closed

Description

@rhafer

Note: Up to now I was only able to trigger the issue with a disabled metadata cache (STORAGE_USERS_FILEMETADATA_CACHE_STORE=noop) during testing. So this might not be relevant for production setups, that still needs to be analyzed. Nevertheless it's breaking some tests.

Describe the bug

When uploading a new file to a decomposedfs setup that initial upload already creates a revision duplicating the content of the upload.

Initial debugging indicates that when Finalizing the Upload we try to read the current node attributes from the metadata lockfiie instead of the the metadata file itself, when using the messagepack backend.

Activity

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

    @rhafer
    MemberAuthor

    Turns out that Finalize is passing the lockfile (https://github.com/opencloud-eu/reva/blob/main/pkg/storage/pkg/decomposedfs/upload/upload.go#L317) as a reader to the XattrsWithReader()(https://github.com/opencloud-eu/reva/blob/main/pkg/storage/pkg/decomposedfs/upload/upload.go#L325) something is borked here.

    This just breaks for the "messagepack" backend as all the other backends are basicallly ignoring the reader that is passed to AllWithLockedResource()

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