-
Notifications
You must be signed in to change notification settings - Fork 6.1k
With @PreAuthorize, method validation does not work. #10470
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
Comments
Hi, I just had a look at this code and there is obviously a bug in
because the suspending function is called directly using The obvious way to solve it would be to call the proceed method
but that would mean omitting the special treatment of Kotlin suspending function, which is imho architecturally not best placed in a |
Any update, please? |
Please see my comment in #10252. Given that, I'll mark this as closed as of 6.2.0. I can also confirm that when I take the sample provided in the OP and update it to the latest, it demonstrates the expected behavior. |
Thanks a lot!!! |
Describe the bug
If I use
@PreAuthorize
, the validation for@RequestParam
does not work.To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
@PreAuthorize
should not disturb validator.Sample
https://github.com/und3rs/springboot-helpme
You can test with '\src\test\kotlin\test.http'.
The text was updated successfully, but these errors were encountered: