Skip to content

fix(files_versions): only close stream if still open, fixing S3 - #52937

Merged
susnux merged 1 commit into
masterfrom
fix/s3-versions
May 18, 2025
Merged

fix(files_versions): only close stream if still open, fixing S3#52937
susnux merged 1 commit into
masterfrom
fix/s3-versions

Conversation

@susnux

@susnuxsusnux commented May 18, 2025

Copy link
Copy Markdown
Contributor

Summary

streams get closed automatically when dropped, and in some cases the stream seems to be already closed by the S3 library, in which case trying to close it again will raise an error.

Checklist

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnuxsusnux added this to the Nextcloud 32 milestone May 18, 2025
@susnux
susnux requested a review from SystemKeeperMay 18, 2025 14:50
@susnuxsusnux added the bug label May 18, 2025
@susnux
susnux requested a review from a team as a code ownerMay 18, 2025 14:50
@susnux
susnux requested review from Altahrim, ArtificialOwl and yemkareems and removed request for a teamMay 18, 2025 14:50
@susnux
susnux requested review from icewind1991 and removed request for ArtificialOwlMay 18, 2025 14:51

@SystemKeeperSystemKeeper left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't judge if it's the correct way, but fixes the tests I was having issues with.

@susnux
susnux merged commit 0e20d9e into masterMay 18, 2025
@susnux
susnux deleted the fix/s3-versions branch May 18, 2025 17:53
@solracsf

Copy link
Copy Markdown
Member

Worth backport it?

@susnux

Copy link
Copy Markdown
ContributorAuthor

Worth backport it?

No only an issue on master. Caused by #52890

@skjnldsvskjnldsv mentioned this pull request Aug 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@susnux@solracsf@SystemKeeper@skjnldsv