Backporting RESTEASY-2648 to 3.15.x
by Philippe Marschall
Hello
We are interested in backporting RESTEASY-2648 to 3.15.x. In the JIRA
[1] there was a discussion about backporting to 3.13.x but it looks like
this never happened. We are interested in RESTEASY-2648 because we would
like to get rid of the Guava dependency when using the Jackson 2
provider in a Java SE environment. We are still on 3.15.x because we are
using RESTEasy both in WildFly and in Java SE and we would like to keep
the versions in sync, and WildFly is still on 3.15.x.
Is this something you would be acceptable? If so we would be willing to
work on a PR. What would be involved other than cherry picking the
commit [2], cloning the JIRA and opening a PR?
[1] https://issues.redhat.com/browse/RESTEASY-2648
[2]
https://github.com/resteasy/Resteasy/commit/ae13c620eb3c715b0938942c29648...
Cheers
Philippe
3 years, 5 months
HELP - How to customize default error responses on Quarkus
by Paolo Antinori
Hi everyone,
we are looking for guidance for an activity related to Apicurio projects that are writing a Quarkus based app leveraging RestEasy.
We have been asked to customize the default error responses, like the following:
`reason: "javax.ws.rs.NotAllowedException: RESTEASY003650: No resource method found for DELETE, return 405 with Allow header"`
So to have them translated to business-specific messages.
We have successfully used Exception mappers are application layer, but it seems that if an error comes from the platform then the application's exception mapper is not called. So for things like authentication failures, or when trying to access an API endpoint that doesn't exist, or calling an existing API with the wrong Content-Type - these are Reasteasy errors that don't go through the mapper.
We are thus consulting the experts here to understand what is supposed to be to idiomatic way to obtain this in RestEasy?
thank you
paolo
pantinor(a)redhat.com
Versions info:
```
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
<version>1.13.2.Final</version>
<exclusions>
<exclusion>
<groupId>com.github.java-json-tools.jackson-coreutils</groupId>
<artifactId>jackson-coreutils</artifactId>
</exclusion>
<exclusion>
<groupId>com.github.java-json-tools.jackson-coreutils</groupId>
<artifactId>jackson-coreutils-equivalence</artifactId>
</exclusion>
</exclusions>
</dependency>
```
3 years, 5 months