Side effect from ProducesRequestCondition cache with multiple RequestMappingHandlerMapping beans #23091
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
The fix for #22644 introduces an optimization by storing the calculated accept headers in a request attribute for later lookups. If a
HandlerMapping
implementation decorates the request hoping that Accept headers would be looked up through that decorator, this fails as the cached values get used.I suggest to reset the cache per
HandlerMapping
so that it's able to tweak thhe request early in the processing cycle but still benefit from the cache.The text was updated successfully, but these errors were encountered: