Skip to content

[stable33] fix(sharing): Prevent empty password when checkbox is enabled#59090

Draft
backportbot[bot] wants to merge 2 commits intostable33from
backport/58226/stable33
Draft

[stable33] fix(sharing): Prevent empty password when checkbox is enabled#59090
backportbot[bot] wants to merge 2 commits intostable33from
backport/58226/stable33

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Mar 19, 2026

Backport of #58226

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

nfebe added 2 commits March 19, 2026 19: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>
fix(sharing): Prevent generated password from overwriting user input

Signed-off-by: nfebe <fenn25.fn@gmail.com>

[skip ci]
@backportbot backportbot bot requested review from nfebe, susnux and szaimen March 19, 2026 19:24
@backportbot backportbot bot added bug 3. to review Waiting for reviews labels Mar 19, 2026
@backportbot backportbot bot added this to the Nextcloud 33.0.1 milestone Mar 19, 2026
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

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

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants