Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(encryption): refactor/improve DecryptAll/EncryptAll robustness/error handling - #57506

Closed
joshtrichards wants to merge 5 commits into
masterfrom
jtr/refactor-DecryptAll-error-handling
Closed

joshtrichards wants to merge 5 commits into
masterfrom
jtr/refactor-DecryptAll-error-handling

Conversation

@joshtrichards

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

Changes

  • Improved logic to ensure only files owned by the user are decrypted, preventing changes to shared or group data.
  • More robust error handling: file operation failures now raise exceptions and are properly logged.
  • Progress messages and logs are clearer and more informative.
  • Refactoring enhances code readability and maintainability.
  • Clean-up routines now reliably remove temp files after errors.
  • Return values explicitly distinguish between actions performed and files skipped.
  • Aligned the implementations of EncryptAll and DecryptAll more closely (still not perfect)

Benefits

Safer decryption for user data, enhanced reliability, and easier ongoing maintenance.

TODO

  • Update tests
  • Decide whether to do any of the inline TODOs while we're here
  • Double-check the UI output experience

Checklist

Also better unifies logic with EncryptAll counterpart

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
@susnux susnux added the community pull requests from community label Jun 9, 2026
@susnux susnux added this to the Nextcloud 35 milestone Jun 9, 2026
@blizzz blizzz mentioned this pull request Aug 27, 2026
@susnux

susnux commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request as it has been in draft state without any activity for more than six months.
If you are still interested in this change, feel free to revive it and reopen it (or ask us to reopen it if you cannot).
Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community pull requests from community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants