Skip to content

fix(files_sharing): Password field must not be required if already set - #48991

Merged
susnux merged 2 commits into
masterfrom
fix/password-field-sharing
Oct 30, 2024
Merged

fix(files_sharing): Password field must not be required if already set#48991
susnux merged 2 commits into
masterfrom
fix/password-field-sharing

Conversation

@susnux

@susnuxsusnux commented Oct 29, 2024

Copy link
Copy Markdown
Contributor

If there is already a password, there is no need to require the password in the setting ('newPassword'). It is only required for new shares.

Checklist

@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable30

@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable29

@susnuxsusnux added this to the Nextcloud 31 milestone Oct 29, 2024
@susnux
susnuxforce-pushed the fix/password-field-sharing branch from 2c8b26f to f984570CompareOctober 30, 2024 09:15
If there is already a password, there is no need to require the password
in the setting ('newPassword'). It is only required for new shares.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnuxforce-pushed the fix/password-field-sharing branch from f984570 to e13b6d3CompareOctober 30, 2024 09:31

@nfebenfebe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Wondering what would happen if someone attempts to remove password on an existing share, if possible.

@susnux

Copy link
Copy Markdown
ContributorAuthor

Wondering what would happen if someone attempts to remove password on an existing share, if possible.

If the password is enforced, then this is not possible, you can only modify it.
If it is optional then you can simply remove the checkmark for "password protected" to remove the password

Sign up for freeto 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.

[Bug]: Sharing via email errors with missing password

3 participants

@susnux@nfebe@provokateurin