ResourceController has multiple @RequestMappings that would conflict, currently to avoid passing the label we use the useDefaultLabel request parameter to select. Starting with spring 5.3 this is no longer happening.
Given
@RequestMapping("/{name}/{profile}/{label}/**")
// and
@RequestMapping(value = "/{name}/{profile}/**", params = "useDefaultLabel")
Calling /foo/default/file.txt?useDefaultLabel used to route to the later, now it routes to the former and produces an error because the file is treated as a label.
ResourceController has multiple
@RequestMappings that would conflict, currently to avoid passing the label we use theuseDefaultLabelrequest parameter to select. Starting with spring 5.3 this is no longer happening.Given
Calling
/foo/default/file.txt?useDefaultLabelused to route to the later, now it routes to the former and produces an error because the file is treated as a label.