Skip to content

[stable30] fix(files_sharing): Fix error messages from password policy #49822

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

Merged
merged 4 commits into from
Dec 12, 2024

Conversation

@backportbot backportbot bot added bug 3. to review Waiting for reviews labels Dec 12, 2024
@backportbot backportbot bot added this to the Nextcloud 30.0.5 milestone Dec 12, 2024
@come-nc come-nc force-pushed the backport/49361/stable30 branch from 8f58ae5 to 0c34df0 Compare December 12, 2024 14:36
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]>
@come-nc
Copy link
Contributor

come-nc commented Dec 12, 2024

/backport to stable29

@come-nc
Copy link
Contributor

come-nc commented Dec 12, 2024

/backport to stable28

@come-nc come-nc marked this pull request as ready for review December 12, 2024 16:52
@come-nc
Copy link
Contributor

come-nc commented Dec 12, 2024

Ready for review, both source branches are merged in master.

@provokateurin provokateurin merged commit c2e9e07 into stable30 Dec 12, 2024
175 checks passed
@provokateurin provokateurin deleted the backport/49361/stable30 branch December 12, 2024 20:13
@blizzz blizzz mentioned this pull request Jan 8, 2025
17 tasks
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