-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(files_sharing): Do not wrap password policy exception into a generic one #49366
Conversation
lib/private/Share20/Manager.php
Outdated
} catch (HintException $e) { | ||
throw new \Exception($e->getHint()); | ||
} | ||
$this->dispatcher->dispatchTyped(new ValidatePasswordPolicyEvent($password)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still disappointed that this is done using exceptions rather than setting property on the even like isValid
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this does not fix it
I’m out of ideas |
Do you need more info how to reproduce it? |
Do you have a full stacktrace for the Exception? (with this PR applied on server side) |
d0beeed
to
900007d
Compare
@tobiasKaminsky Can you test again? It should be good now, message should be back and error code should be 400. |
This works now without any modification on client side 🎉 |
@come-nc can we merge this? 💙 |
…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]>
Signed-off-by: Côme Chilliet <[email protected]>
cca3072
to
365ff40
Compare
Follow-up of #49361
Summary
Let the controller access the HintException and show the error to the user.
Checklist