-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Toshiaki Maki opened SPR-17395 and commented
#21635 introduced RouterFunctions.MATCHING_PATTERN_ATTRIBUTE to WebFlux.fn, and set that mapping information as a String. #21900 duplicated that same information in HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE with the same type, whereas it is expected to be of type PathPattern,
Lines 160 to 165 in 8de5c05
| attributes.put(BEST_MATCHING_HANDLER_ATTRIBUTE, handlerFunction); | |
| String matchingPattern = | |
| (String) attributes.get(RouterFunctions.MATCHING_PATTERN_ATTRIBUTE); | |
| if (matchingPattern != null) { | |
| attributes.put(BEST_MATCHING_PATTERN_ATTRIBUTE, matchingPattern); |
As a result, ClassCastException occurs after updating to Spring Boot 2.1.0.RC1 as Boot expects it as PathPattern
Affects: 5.1.1
Issue Links:
- Provide matched pattern information in WebFlux fn [SPR-17098] #21635 Provide matched pattern information in WebFlux fn
- Set BEST_MATCHING_HANDLER_ATTRIBUTE in WebFlux.fn [SPR-17367] #21900 Set BEST_MATCHING_HANDLER_ATTRIBUTE in WebFlux.fn
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug