Skip to content

Invalid JSON returned from the default QuarkusErrorHandler (Vert.x) #13681

Closed
@pismy

Description

@pismy

Describe the bug
Using vertx-http and quarkus-resteasy, if an exception is thrown in a JAX-RS endpoint and no ExceptionMapper catches it gets forwarded to QuarkusErrorHandler.

In case of application/json Accept header, the stack does not get properly escaped there.
More specifically, produces a JSON with a string including unencoded tab characters.

Environment:

  • Quarkus 1.9.2.Final

Additional info
The same exact issue existed in Undertow QuarkusErrorServlet implementation
see: #9463

The fix to apply here is very similar to undertow fix

Activity

gsmet

gsmet commented on Dec 3, 2020

@gsmet
Member

@pismy would you like to prepare a PR?

pismy

pismy commented on Dec 4, 2020

@pismy
Author

Sure

ghost added this to the 1.11 - master milestone on Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @pismy@gsmet

      Issue actions

        Invalid JSON returned from the default QuarkusErrorHandler (Vert.x) · Issue #13681 · quarkusio/quarkus