Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] fix(files_sharing): Fix error messages from password policy #49836

Open
wants to merge 4 commits into
base: stable29
Choose a base branch
from

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Dec 12, 2024

Backport of PR #49822

Exceptions thrown from password_policy may bubble up in share creation
 or update when a password is used. Their message is meant to be shown
 to the user. This always the case for HintException so we catch that
 instead of the subclass GenericShareException.

Signed-off-by: Côme Chilliet <[email protected]>
…ric one

Let the controller access the HintException and show the error to the user.

Signed-off-by: Côme Chilliet <[email protected]>
This fixes a regression that bad password returned 403 instead of 400
 because of previous changes.

Signed-off-by: Côme Chilliet <[email protected]>
@backportbot backportbot bot added bug 3. to review Waiting for reviews labels Dec 12, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.11 milestone Dec 12, 2024
@provokateurin provokateurin changed the title [stable29] [stable30] fix(files_sharing): Fix error messages from password policy [stable29] fix(files_sharing): Fix error messages from password policy Dec 12, 2024
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