Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url /{label}/{application}-{profile}.properties stopped working in spring boot 2.6.1 and config 3.1.0 #2020

Closed
aizerin opened this issue Dec 23, 2021 · 4 comments · Fixed by #2031

Comments

@aizerin
Copy link

aizerin commented Dec 23, 2021

I upgraded spring cloud to 2021.0.0 and spring boot to 2.6.1 and it stopped working for URL in format /{label}/{application}-{profile}.properties.

It ends with this response:

{"name":"master","profiles":["app-devt.properties"],"label":null,"version":null,"state":null,"propertySources":[]}

I tried to debug it and it goes to this method in the controller instead of the correct one.

https://github.com/spring-cloud/spring-cloud-config/blob/v3.1.0/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentController.java#L109

@ryanjbaxter
Copy link
Contributor

Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

@hpoettker
Copy link
Contributor

I think the old behavior should return if the property spring.mvc.pathmatch.matching-strategy: ant_path_matcher is set.

@SamuelTissot
Copy link

SamuelTissot commented Jan 21, 2022

I can confirm that spring.mvc.pathmatch.matching-strategy=ant_path_matcher fixed the issue

@ryanjbaxter
Copy link
Contributor

Change in boot spring-projects/spring-boot#24805

@spencergibb spencergibb added this to To do in 2021.0.1 via automation Feb 15, 2022
@spencergibb spencergibb added this to To do in 2022.0.0-M2 via automation Feb 15, 2022
@spencergibb spencergibb added this to the 3.1.1 milestone Feb 15, 2022
@ryanjbaxter ryanjbaxter linked a pull request Feb 15, 2022 that will close this issue
2021.0.1 automation moved this from To do to Done Feb 15, 2022
2022.0.0-M2 automation moved this from To do to Done Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
2021.0.1
  
Done
2022.0.0-M2
  
Done
Development

Successfully merging a pull request may close this issue.

6 participants