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
I upgraded the spring cloud config server from spring cloud to 2021.0.0 to 2021.0.1. With this spring-cloud-config is upgraded from 3.1.0 to 3.1.1.
With the upgrade config fetched from the configuration server for profiles with dashes stopped working.
My analysis is that this is caused by the path pattern matching change for fixing this bug: #2020
And adjusting the EnvironmentController here: 1913b2a
The spring cloud configuration server is backed by a git repo and the property files are all in yaml.
I could reproduce this bug with integration testing. Using spring cloud 2021.0.0 profiles like "test-1" worked fine, with 2021.0.1 not anymore.
An examples used in test of endpoints used to get config for a specific profile with a dash: /configuration/application-x/test-1
An example of the error we get in a spring boot application using this config server after upgrading:
.... SpringBootApp : The following 1 profile is active: "test-1"
o.s.b.context.config.ConfigDataLoader : Fetching config from server at : https://config-server-url
o.s.b.context.config.ConfigDataLoader : Could not locate PropertySource ([ConfigServerConfigDataResource@6127a7e uris = array<String>['https://config-server-url'], optional = true, profiles = list['test-1']]): None of labels [] found
The text was updated successfully, but these errors were encountered:
MarkvanOsch
changed the title
Config fetched from server for profiles with a dash stopped working with spring-cloud-config 3.1.1
Config fetched from config server for profiles with a dash stopped working with spring-cloud-config 3.1.1
Apr 7, 2022
Why I believe this to be a bug and should be supported, for reference the latest spring-framework docs where for example profiles "us-east" and "eu-central" are mentioned, both also containing dashes in the profile name.
I upgraded the spring cloud config server from spring cloud to 2021.0.0 to 2021.0.1. With this spring-cloud-config is upgraded from 3.1.0 to 3.1.1.
With the upgrade config fetched from the configuration server for profiles with dashes stopped working.
My analysis is that this is caused by the path pattern matching change for fixing this bug:
#2020
And adjusting the EnvironmentController here:
1913b2a
The spring cloud configuration server is backed by a git repo and the property files are all in yaml.
I could reproduce this bug with integration testing. Using spring cloud 2021.0.0 profiles like "test-1" worked fine, with 2021.0.1 not anymore.
An examples used in test of endpoints used to get config for a specific profile with a dash:
/configuration/application-x/test-1
An example of the error we get in a spring boot application using this config server after upgrading:
The text was updated successfully, but these errors were encountered: