You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webmvc.fn onError doesn't work with CompletableFuture.
Error handler predicates are never called.
Take a look at the code below.
error1 scenario shows the problem: application should return an error response with "error" body, returns Whitelabel Error Page instead.
error2 scenario works fine.
This commit makes sure that any error handlers registered on the route
are also applied when an error occurs asynchronously. This commit
applies to asynchronous bodies with both CompletableFuture and Reactive
Streams, as well as completely asynchronous responses.
Closesspring-projectsgh-26831
lxbzmy
pushed a commit
to lxbzmy/spring-framework
that referenced
this issue
Mar 26, 2022
This commit makes sure that any error handlers registered on the route
are also applied when an error occurs asynchronously. This commit
applies to asynchronous bodies with both CompletableFuture and Reactive
Streams, as well as completely asynchronous responses.
Closesspring-projectsgh-26831
Affects: 5.3.6
webmvc.fn
onError
doesn't work withCompletableFuture
.Error handler predicates are never called.
Take a look at the code below.
error1 scenario shows the problem: application should return an error response with "error" body, returns Whitelabel Error Page instead.
error2 scenario works fine.
The text was updated successfully, but these errors were encountered: