WebClient onStatus order changed #23880
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: regression
A bug that is also a regression
Milestone
Affects: 5.2.0
Hi all,
It looks like the
onStatus
custom error predicates are now evaluated in the inverted order compared to version5.1.x
Using the
WebClient
this way:Using
5.1.0
firstonStatus
was evaluated first, using version5.2.0
with the sameWebClient
usage, lastonStatus
is evaluated first and behavior is significantly changed.This behavior change was introduced in commit a9b3d95
If this
onStatus
evaluation order is not guaranteed, I think that this should be documented.I can submit a documentation or a fix pull request.
Thomas
The text was updated successfully, but these errors were encountered: