Skip to content

fix(encryption): Catch exceptions in encrypt-all command and continue - #53665

Merged
come-nc merged 3 commits into
masterfrom
fix/catch-exception-in-encrypt-all
Jul 3, 2025
Merged

fix(encryption): Catch exceptions in encrypt-all command and continue#53665
come-nc merged 3 commits into
masterfrom
fix/catch-exception-in-encrypt-all

Conversation

@come-nc

@come-nccome-nc commented Jun 24, 2025

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

encryption:encrypt-all sometimes run into exception, for instance if a file is locked.
Log the exception and continue instead of crashing.
Also add better handling for fopen failures in the Encryption wrapper.

Checklist

@come-nccome-nc added this to the Nextcloud 32 milestone Jun 24, 2025
@come-nccome-nc self-assigned this Jun 24, 2025
@come-nc
come-nc requested a review from a team as a code ownerJune 24, 2025 15:02
@come-nc
come-nc requested review from Altahrim, ArtificialOwl and skjnldsv and removed request for a teamJune 24, 2025 15:02
@come-nccome-nc added the 3. to review Waiting for reviews label Jun 24, 2025
@come-nc

Copy link
Copy Markdown
ContributorAuthor

/backport! to stable31

@come-nc

Copy link
Copy Markdown
ContributorAuthor

/backport! to stable30

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code make sense

come-nc added 3 commits July 3, 2025 15:19
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
come-ncforce-pushed the fix/catch-exception-in-encrypt-all branch from 6a40066 to 4427050CompareJuly 3, 2025 13:19
@come-nc
come-nc requested a review from susnuxJuly 3, 2025 13:32
@come-nc
come-nc merged commit 1ded359 into masterJul 3, 2025
224 of 235 checks passed
@come-nc
come-nc deleted the fix/catch-exception-in-encrypt-all branch July 3, 2025 14:28
@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

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@come-nc@susnux@skjnldsv