-
Notifications
You must be signed in to change notification settings - Fork 19
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
M3 #441
Conversation
@wetted there is a breaking change. Please investigate what has changed in core and fix it in servlet.
|
Seems like this method can just be deleted https://github.com/micronaut-projects/micronaut-servlet/blob/master/servlet-core/src/main/java/io/micronaut/servlet/http/ServletBodyBinder.java#L70-L72 |
Yeah, it can. The bigger problems are that
|
…for DefaultBodyAnnotationBinder in core that finalized overridden methods. Changed from using inheritance to delegation.
@@ -91,7 +91,7 @@ class UndertowParameterBindingSpec extends Specification { | |||
expect: | |||
response.status() == HttpStatus.BAD_REQUEST | |||
response.body().contains('Failed to convert argument') | |||
response.body().contains('Expected one integer, but got array of multiple value') | |||
response.body().contains('Expected one string, but got array of multiple value') |
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.
is this change expected?
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.
yes the old message was wrong
@@ -166,7 +171,7 @@ public List<ConversionError> getConversionErrors() { | |||
} | |||
|
|||
} | |||
return super.bind(context, source); | |||
return defaultBodyAnnotationBinder.bind(context, source); |
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.
would be nice to eventually replace this method entirely
servlet-engine/src/main/java/io/micronaut/servlet/engine/DefaultServletHttpRequest.java
Show resolved
Hide resolved
SonarCloud Quality Gate failed. |
No description provided.