Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Feb 10, 2026

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.

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 <[email protected]>
@nfebe nfebe requested review from a team as code owners February 10, 2026 16:02
@nfebe nfebe requested review from Altahrim, ArtificialOwl, leftybournes, sorbaugh, susnux and szaimen and removed request for a team February 10, 2026 16:02
@susnux susnux added bug 3. to review Waiting for reviews labels Feb 10, 2026
@susnux susnux added this to the Nextcloud 34 milestone Feb 10, 2026
},
test: {
include: ['./{apps,core}/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
passWithNoTests: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prevent 1 exit when not tests around found in a linked app.

https://vitest.dev/config/passwithnotests.html

Copy link
Contributor

Choose a reason for hiding this comment

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

But in which case this should happen?
If it happens then this points to a real issue of that app.

Except you mean like external other apps you have linked only locally.
But in that case you should not put them into apps but rather something like apps-extra or similar.

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.

[Bug] Password checkbox unchecks after error message [Bug]: Adding a password to a share is not effective unless saved twice

2 participants