Skip to content
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

@ServerResponseFilter with Throwable parameter is not called when REST resource is throwing an exception #36955

Closed
famod opened this issue Nov 8, 2023 · 1 comment · Fixed by #36995
Labels
area/rest kind/bug Something isn't working
Milestone

Comments

@famod
Copy link
Member

famod commented Nov 8, 2023

Describe the bug

https://quarkus.io/guides/resteasy-reactive#request-or-response-filters
image
implies that a @ServerResponseFilter method can handle exceptions, but that does not seem to be the case (see reproducer).

Expected behavior

Filter method should be called with the exception that was thrown in a rest resource method.

Actual behavior

Filter is not called with the exception that was thrown in a rest resource method.

How to Reproduce?

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

3.5.0 (and current main respectively)

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@famod famod added the kind/bug Something isn't working label Nov 8, 2023
Copy link

quarkus-bot bot commented Nov 8, 2023

/cc @FroMage (resteasy-reactive), @geoand (resteasy-reactive), @stuartwdouglas (resteasy-reactive)

geoand added a commit to geoand/quarkus that referenced this issue Nov 10, 2023
famod pushed a commit to geoand/quarkus that referenced this issue Nov 10, 2023
famod pushed a commit to geoand/quarkus that referenced this issue Nov 10, 2023
famod added a commit that referenced this issue Nov 10, 2023
Improve response filter documentation
@quarkus-bot quarkus-bot bot added this to the 3.6 - main milestone Nov 10, 2023
mmusgrov pushed a commit to mmusgrov/quarkus that referenced this issue Nov 13, 2023
@gsmet gsmet modified the milestones: 3.6 - main, 3.5.2 Nov 13, 2023
gsmet pushed a commit to gsmet/quarkus that referenced this issue Nov 13, 2023
phillip-kruger pushed a commit to phillip-kruger/quarkus that referenced this issue Nov 13, 2023
@aloubyansky aloubyansky modified the milestones: 3.5.2, 3.2.9.Final Nov 14, 2023
aloubyansky pushed a commit to aloubyansky/quarkus that referenced this issue Nov 14, 2023
computerlove pushed a commit to computerlove/quarkus that referenced this issue Nov 27, 2023
DavideD pushed a commit to DavideD/quarkus that referenced this issue Nov 27, 2023
holly-cummins pushed a commit to holly-cummins/quarkus that referenced this issue Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rest kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants