Skip to content

[stable31] fix(sharing): Prevent empty password when checkbox is enabled#59201

Open
backportbot[bot] wants to merge 3 commits intostable31from
backport/59200/stable31
Open

[stable31] fix(sharing): Prevent empty password when checkbox is enabled#59201
backportbot[bot] wants to merge 3 commits intostable31from
backport/59200/stable31

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Mar 25, 2026

Backport of PR #58226

nfebe added 2 commits March 25, 2026 15:26
Set passwordProtectedState explicitly when initializing shares with
default passwords. This ensures the checkbox state is tracked
independently of the password value, preventing it from unchecking
when the password field is cleared.

Also block saving new shares when password protection is enabled but
no password is entered, regardless of enforcement settings.

Added passWithNoTests to vitest configs to handle Vue 2/3 dual
frontend test runs gracefully.

Fixes: #57732, #57011
Signed-off-by: nfebe <fenn25.fn@gmail.com>
@skjnldsv
Copy link
Member

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants