Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stable 2.19 - backport write upload session info atomically #4853

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Sep 18, 2024

We now use a lock and atomic write on upload session metadata to prevent empty reads. A virus scan event might cause the file to be truncated and then a finished event might try to read the file, just getting an empty string.

Backport of #4850

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic butonic requested review from a team, labkode and glpatcern as code owners September 18, 2024 14:21
@butonic butonic self-assigned this Sep 18, 2024
@butonic butonic changed the title write upload session info atomically stable 2.19 - backport write upload session info atomically Sep 18, 2024
@butonic
Copy link
Contributor Author

butonic commented Sep 19, 2024

only sonarcloud uploads failing in owncloud/ocis#10103, merging

@butonic butonic merged commit f9a75a1 into cs3org:stable-2.19 Sep 19, 2024
10 checks passed
@butonic butonic deleted the backport/stable-2.19/write-upload-sessions-atomically branch September 19, 2024 09:35
@micbar micbar mentioned this pull request Sep 30, 2024
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants