-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Wrong ordering of property sources in config client when using spring.config.import #2417
Comments
Yes please provide a sample with example requests including that you expect the response and ordering of property sources should be. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Sample Project can be found here: https://github.com/telperinion/spring-config-bug-mve in this configuration the Config-Server returns the following json string: The 'test' property in the config-client-environment is 'default' not 'override' what would be expected. |
the issue is connected to #2422 and so although to #2392 Unfortunatly we can't move to the solution of this issues as we cant move back to the bootstrap dependency The first part of the issue is, that the profile determination of the propertie source is not specific enough (looking only for "_|-{profile}" in the propertie-source-name string will irregularly put sources with no profile to the profiled sources if the search path contains the pattern). Second, if using the import dependency the override logic and the composite logic of the config server is disabled or completly deranged, this should be mentioned in the documentation (so i'm not really satisfied with this solution). For the rest it is really a problem. (for example not following a vault over git logic for the datasource configuration leading to production data in a test database) |
… profile specific Fixes spring-cloud#2417
The problem here two fold.
The logic in the PR is not perfect but honestly it can't be until we add this functionality #2291 |
… profile specific (#2437) Fixes #2417 Co-authored-by: Ryan Baxter <[email protected]>
Describe the bug
We are using a composite configuration at the config-server (at least 3 different backends(vault,file,git)) and have been moving from bootstrap configuration to import on the client side.
We are facing 2 issues:
Is the 2. one intended or not (in https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#config-data-import it is said that the default profile is used to load further profiles, but that the default profile has than precedence over the rest (even the override) is not documented there)?
If so, at least the first on is a bug in my eyes.
Sample
If needed(and somebody asks :) ) i will provide an sample project for this issue
The text was updated successfully, but these errors were encountered: