-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Description
Affects: Spring Framework 6.1.9 - current
The change introduced to ServerHttpObservationFilter
in 6.1.9 causes requests that executes multiple asynchronous cycles to not get any observations and the observation will never be closed, the listener will not receive any callbacks.
The listener in ServerHttpObservationFilter
need to add itself to the AsyncContext
provided in the AsyncEvent
provide when onStartAsync(AsyncEvent event)
is being called. The listener will not receive any other callbacks unless this is done.
This happens if there is a servlet filter with lower priority in the filter chain that do asynchronous work (calls startAsync()
on the request) before dispatching the request to further filters or Spring handlers, that in turn calls startAsync()
on the request.