-
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
Use core M2 #428
Use core M2 #428
Conversation
Fix up removed and deprecated methods
Argument<?> bodyType = route.getBodyArgument() | ||
Argument<?> bodyType = route.getRouteInfo().getFullBodyArgument() |
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.
@graemerocher Is this the correct replacement?
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.
Seems not (or something else has changed) as now this is failing
Lines 44 to 52 in f23fc5d
void "test an exception handler returning the body"() { | |
when: | |
client.toBlocking().retrieve("/exception/my") | |
then: | |
def ex = thrown(HttpClientResponseException) | |
ex.response.status() == HttpStatus.INTERNAL_SERVER_ERROR | |
ex.response.getBody().get() == "hello" | |
} |
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.
Looks correct
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.
@dstepanov There's also route.getRouteInfo().getBodyArgument()
... What's the difference?
So it seems the issue with the failing test: Lines 44 to 52 in f23fc5d
Is that when we execute normalFlow() for the request lifecycle here micronaut-servlet/servlet-core/src/main/java/io/micronaut/servlet/http/ServletHttpHandler.java Lines 207 to 211 in a79b1c1
We're getting a 200 response (with the expected body) wheras prior to core-M2, we got a 500 @dstepanov Can you spot what I've missed? I'm assuming there's something new I need to set up in the RequestLifecycle? |
@timyates To me, the test doesn't look correct. The exception is remapped so there shouldn't be any error. Maybe we can add that test to TCK? |
SonarCloud Quality Gate failed. |
Fix up removed and deprecated methods