You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To provide configuration properties for legacy apps we have to retrieve the configuration by file using one of the paths
/{label}/{application}-{profile}.yml
/{label}/{application}-{profile}.json
/{label}/{application}-{profile}.properties
unfortunately these path are not working anymore. Instead of being routed to the corresponding endpoint in the class org.springframework.cloud.config.server.environment.EnvironmentController annotated with
they are all routed to the method annoteted with: @GetMapping(path = "/{name}/{profiles:.[^-].}", produces = MediaType.APPLICATION_JSON_VALUE)
which is completely wrong.
I then tried to find out what goes wrong but i stuck in the method org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(String, HttpServletRequest) and there on the lines
Comparator comparator = new MatchComparator(getMappingComparator(request));
matches.sort(comparator);
bestMatch = matches.get(0);
the sorted result is different between Spring Cloud 2021.0.0, Spring Boot 2.6.x where its wring and Spring Cloud 2020.0.4, Spring Boot 2.5.8 where it was working and therefore the variable bestMatch contains the wrong path.
The text was updated successfully, but these errors were encountered:
To provide configuration properties for legacy apps we have to retrieve the configuration by file using one of the paths
unfortunately these path are not working anymore. Instead of being routed to the corresponding endpoint in the class org.springframework.cloud.config.server.environment.EnvironmentController annotated with
they are all routed to the method annoteted with:
@GetMapping(path = "/{name}/{profiles:.[^-].}", produces = MediaType.APPLICATION_JSON_VALUE)
which is completely wrong.
I then tried to find out what goes wrong but i stuck in the method org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(String, HttpServletRequest) and there on the lines
Comparator comparator = new MatchComparator(getMappingComparator(request));
matches.sort(comparator);
bestMatch = matches.get(0);
the sorted result is different between Spring Cloud 2021.0.0, Spring Boot 2.6.x where its wring and Spring Cloud 2020.0.4, Spring Boot 2.5.8 where it was working and therefore the variable bestMatch contains the wrong path.
The text was updated successfully, but these errors were encountered: