-
Couldn't load subscription status.
- Fork 38.8k
Closed
Description
Issue:
Created 2 mappings as following in the controller, code is in Controller .javaof the attached project.
@GetMapping("/foo/**")
public ResponseEntity getFoo() {}
@GetMapping("/foo/**/bar")
public ResponseEntity getFooBar() {}- In
webmvcwhenever request comes as/foo/1/2/3/bar(as far as last path segment
isbar) it maps togetFooBar. - If
baris not specified ast last path segment then it maps togetFoo. i.e allfoo/1,foo/1/2,foo/ab/cd.... maps togetFoo. - The issue is in webflux, when I switch to
webfluxall mappings map to
getFoo. No matter if path consists ofbarin the last path segment. - For eg.
/foo/ab/cd/barmaps togetFooinstead ofgetFooBar.
Uploaded the project here , to switch between
webfluxandwebmvcplease comment out
appropriate starter dependency inpom.xml.
Repro project here : https://github.com/kaladhar-mummadi/demo-issue
Notes:
- Webmvc AntPathMatcherTests has tests like
/bla/**/bla, which are not covered in
PathPatternTests of WebFlux.
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement