vert-x3 / vertx-web

HTTP web applications for Vert.x
Apache License 2.0
1.11k stars 535 forks source link

Handle routing errors once #2662

Closed ljpengelen closed 4 weeks ago

ljpengelen commented 1 month ago

Motivation:

For certain types of bad requests, any error handlers for status code 400 will be invoked more often than desired. This means that such an error handler is invoked twice in a row, or immediately after a failure handler has already handled the bad request.

I've created a demo application that illustrates the issue and provides additional details: https://github.com/ljpengelen/vertx-errors-and-failures.

Conformance:

I've signed the Eclipse Contributor Agreement, and my commits are verified.

vietj commented 4 weeks ago

Can you backport to 4.x ?

ljpengelen commented 4 weeks ago

Can you backport to 4.x ?

Sure, I'll create a PR for 4.x.