-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Rest Client Reactive - Filters not executed for non-successful return codes #16702
Comments
That would be great, thanks. I'm actually very surprised the JAX-RS TCK doesn't test this... |
AFAIR the MicroProfile TCK tests this by returning an erroneous response from a filter, maybe JAX-RS one does it this way too? |
Not sure TBH. BTW, reading https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/reactive.20server.20.26.20client it seems like that issue was about Is |
Ah, now I see how it works. So basically the rest-client engages |
Running the test from the example project you can see that the I think the exception could be thrown later, in |
changing how rest client reactive handles |
I'll look at it more closely either later on today or tomorrow
…On Thu, Apr 22, 2021, 11:20 Michał Szynkiewicz ***@***.***> wrote:
changing how rest client reactive handles ResponseExceptionMapper is also
an option :)
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#16702 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBMDP55APNIHAU7IRKNHRDTJ7L5ZANCNFSM43LBBATA>
.
|
In https://github.com/geoand/quarkus/tree/%2316702 I made the Moreover, even with this change in place, the reproducer does not engage the Finally, in this specific, it doesn't really make sense IMHO to have So @michalszynkiewicz it's really up to you how you want to proceed on the MP REST Client. We can certainly make changes to the JAX-RS Client, but we still need to pass the TCK |
For unknown host, I agree, we should fail as we do now, I think. I don't fully follow what happened in the jax-rs test, tried looking at it in the browser and it is not easy to follow :D |
The spec isn't clear on whether or not Does the old rest-client depend on this behavior? |
Classic RestEasy uses a Does this answer your question? |
OK, I guess then that I'll just disable the failing TCK test and open a PR. |
have you checked with the project I attached or the one the reporter provided? The latter was missing |
Yes, I enabled that and still the mapper never seems to be engaged |
This doesn't seem to be specified by the spec or properly tested in the TCK (I actually had to disable a single test that threw a NPE), but it does seem to be what RESTEasy does Relates to: quarkusio#16702
Here it is: #16731 |
This doesn't seem to be specified by the spec or properly tested in the TCK (I actually had to disable a single test that threw a NPE), but it does seem to be what RESTEasy does Relates to: quarkusio#16702
I'll see why the exception mapper is not triggered tomorrow. |
@geoand, programmatically registered exception mapper works with your changes :) I'll try to create a fix for mappers registered with |
Execute ClientResponseFilter as part of the abort chain in JAX-RS Client
Cool :) |
CC @geoand I will try to attach a minimal reproducer tomorrow
The text was updated successfully, but these errors were encountered: