Skip to content

[stable32] fix(sharing): Prevent empty password when checkbox is enabled#59200

Merged
skjnldsv merged 3 commits intostable32from
skjnldsv-backport/58226
Mar 26, 2026
Merged

[stable32] fix(sharing): Prevent empty password when checkbox is enabled#59200
skjnldsv merged 3 commits intostable32from
skjnldsv-backport/58226

Conversation

@skjnldsv
Copy link
Member

Manual backport of #58226

nfebe added 2 commits March 25, 2026 16:24
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 skjnldsv added this to the Nextcloud 32.0.7 milestone Mar 25, 2026
@skjnldsv skjnldsv self-assigned this Mar 25, 2026
@skjnldsv skjnldsv requested a review from a team as a code owner March 25, 2026 15:26
@skjnldsv skjnldsv requested review from nfebe, sorbaugh and susnux and removed request for a team March 25, 2026 15:26
@skjnldsv

This comment was marked as resolved.

@github-actions github-actions bot changed the title fix(sharing): Prevent empty password when checkbox is enabled [stable32] fix(sharing): Prevent empty password when checkbox is enabled Mar 25, 2026
@skjnldsv
Copy link
Member Author

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@skjnldsv skjnldsv merged commit 8c6a107 into stable32 Mar 26, 2026
134 of 137 checks passed
@skjnldsv skjnldsv deleted the skjnldsv-backport/58226 branch March 26, 2026 10:02
@skjnldsv skjnldsv mentioned this pull request Mar 26, 2026
13 tasks
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.

5 participants