Skip to content

set-unset-e2ee#4129

Open
marinofaggiana wants to merge 1 commit into
masterfrom
4128-parent-empty-folder-shows-the-option-to-encrypt-even-though-parents-empty-folder-have-sub-empty-folder---however-encrypt-to-this-parent-folder-fails-and-gives-error---folder-not-found
Open

set-unset-e2ee#4129
marinofaggiana wants to merge 1 commit into
masterfrom
4128-parent-empty-folder-shows-the-option-to-encrypt-even-though-parents-empty-folder-have-sub-empty-folder---however-encrypt-to-this-parent-folder-fails-and-gives-error---folder-not-found

Conversation

@marinofaggiana
Copy link
Copy Markdown
Member

@marinofaggiana marinofaggiana commented Jun 4, 2026

Summary

This pull request fixes an issue where the context menu incorrectly showed the Encrypt option for an apparently empty parent folder, even when that folder contained subfolders.

In this case, starting the encryption process failed with a "Folder not found" error because the folder was not actually eligible for encryption.

Changes

  • Updated the E2EE availability check for folders.
  • Prevented the Encrypt action from being shown when the folder is not really empty or cannot be encrypted safely.

Result

The Encrypt option is no longer displayed for parent folders that contain subfolders, avoiding a failing encryption flow and the misleading "Folder not found" error.

Signed-off-by: Marino Faggiana <marino.faggiana@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant