Repository navigation
fix(web): [OCISDEV-1187] disable confirm in link password dialog when empty - #13218
Merged
gauravsoni119 merged 1 commit intoOct 26, 2026
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
gauravsoni119
force-pushed
the
fix/OCISDEV-1187-link-password-empty-confirm
branch
from
October 23, 2026 11:51
99aecec to
f5cf5ae
Compare
gauravsoni119
requested review from
LukasHirt and
mzner
and removed request for
LukasHirt
October 23, 2026 12:56
gauravsoni119
force-pushed
the
fix/OCISDEV-1187-link-password-empty-confirm
branch
from
October 26, 2026 08:16
f5cf5ae to
3bcb0a7
Compare
mzner
reviewed
Oct 26, 2026
mzner
reviewed
Oct 26, 2026
mzner
requested changes
Oct 26, 2026
gauravsoni119
force-pushed
the
fix/OCISDEV-1187-link-password-empty-confirm
branch
from
October 26, 2026 10:17
3bcb0a7 to
8e17f5a
Compare
… empty The link "Add password" / "Edit password" dialog could be confirmed, by button or Enter, while the field was still empty, which removed the password from the link. Confirm now starts disabled, and Enter only confirms when the password policy is fulfilled, same as the button. Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
gauravsoni119
force-pushed
the
fix/OCISDEV-1187-link-password-empty-confirm
branch
from
October 26, 2026 10:47
8e17f5a to
d50ad8d
Compare
mzner
approved these changes
Oct 26, 2026
gauravsoni119
deleted the
fix/OCISDEV-1187-link-password-empty-confirm
branch
October 26, 2026 13:24
gauravsoni119
added a commit
that referenced
this pull request
Oct 27, 2026
… empty (#13218) The link "Add password" / "Edit password" dialog could be confirmed, by button or Enter, while the field was still empty, which removed the password from the link. Confirm now starts disabled, and Enter only confirms when the password policy is fulfilled, same as the button. Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
gauravsoni119
added a commit
that referenced
this pull request
Oct 28, 2026
…ialog when empty (#13234) fix(web): [OCISDEV-1187] disable confirm in link password dialog when empty (#13218) The link "Add password" / "Edit password" dialog could be confirmed, by button or Enter, while the field was still empty, which removed the password from the link. Confirm now starts disabled, and Enter only confirms when the password policy is fulfilled, same as the button. Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The "Add password" / "Edit password" dialog for links opened with an empty field and an enabled Confirm button. Clicking Confirm, or pressing Enter, without typing removed the password from the link. Confirm now starts disabled, and Enter only confirms when the password policy is fulfilled, same as the Confirm button.
An empty password is a valid request on the server (used by "Remove password" and internal links), so the fix is in the dialog rather than the API.
Related Issue
Motivation and Context
The dialog's Confirm state was driven only by the password policy check, which runs when the value changes, so nothing disabled Confirm before the first keystroke.
How Has This Been Tested?
ocis_fullwithOCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD=falseandOCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD=false, on a link that has a passwordOCIS_PASSWORD_POLICY_DISABLED=true," "is accepted by both Confirm and Enter and''is still blockedupdate:confirmDisabledtrue(fails without the fix)update:confirmDisabledfrom the dialog itself (left to the input's policy check)confirm(fails without the fix)" "while the policy is not fulfilled emits noconfirm(fails without the fix); with the policy fulfilled it emitsconfirmMerge Danger
Door: two-way. Frontend only, no data or API change; reverting restores the old behaviour.
Blast Radius: small. Only
SetLinkPasswordModal.vue, used by the link sidebar's Add password, Edit password, and the link-type change that asks for a password first.Types of changes
Checklist: