-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Exception for validation failure in WebFlux does not match the documentation #33061
Comments
It looks like you'd like us to run the example to actually see the error. Please don't paste code in text like that as the only choice we have is to copy it in a small project created from start.spring.io in the hope we're not missing another piece you're not showing. I haven't looked at the actual code, but please edit your description to replace that with a reference to an actual sample. You can attach a zip to this issue or push the code to a GitHub repository. |
spring-kotlin-webflux-playground.zip |
Thanks. I've reproduced what you've described, we'll look into it. |
Hi @snicoll |
@imvtsl thanks for the offer but I am not sure yet what we want to do for this. While the issue title makes it sound like a documentation change, it might not be. You can see this by the "waiting-for-triage" label that means the team hasn't really determined the nature of the issue yet. |
I understood what you reported but I am not sure what we should do. @rstoyanchev should know. |
|
Affects: <Spring Framework 6.1.8 and maybe other versions>
I write a simple demo below, I write a Controller with a handler method receiving a post request and consume a valid request body
Then I send a post request with this body to the application.
Check out the console and you can see a exception printed and it's type is
WebExchangeBindException
But according to the spring document validation, it should throw a
MethodArgumentNotValidException
.I also test this behavior in mvc and it's the expected exception.
The text was updated successfully, but these errors were encountered: