Spring Cloud Config supported dashes "-" in profile names when using spring-cloud-dependencies: 2020.0.3.

We wanted to migrate to Version: 2021.0.1, but there was a problem, that you'll always recive a 404 (NOT FOUND), wenn die profile name contains a dash "-". Reason for this Error is probably this change:

Commit: https://github.com/spring-cloud/spring-cloud-config/commit/facb18da95e81f7058a63b408c180fe333a5c29d Class: https://github.com/spring-cloud/spring-cloud-config/blob/main/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentController.java

We saw, that in the newest version, there will be a fix for that problem in Version 2021.0.2 so we waited for it. The good news it, that now the EnvironmentController does support dashes in Profile Names. But now, when the profile name contains json, you recieve a 404 (NOT FOUND). For example: enable-json-conversion, enable-json

Comment From: ryanjbaxter

So you are saying that if the profile name contains -json it returns a 404?

Comment From: bvtk

Yes first i thought, more than one dash is the problem, but it is, when the profile name contains json. For example enable-json-conversion

Comment From: ryanjbaxter

Looks like @VincentBostoen has made a PR to fix this 🎉