spring-cloud / spring-cloud-commons

Common classes used in different Spring Cloud implementations
Apache License 2.0
707 stars 704 forks source link

Fix #1285 Spring Cloud activates unexpected profiles when some conditions met #1286

Closed leovx closed 1 year ago

leovx commented 1 year ago

https://github.com/spring-cloud/spring-cloud-commons/issues/1285

yanhom1314 commented 1 year ago

I recently upgraded to version 3.1.4 and encountered an issue with retrieving profiles from different PropertySources. I want to know if this is considered a bug, as previous versions did not have this problem.

leovx commented 1 year ago

I recently upgraded to version 3.1.4 and encountered an issue with retrieving profiles from different PropertySources. I want to know if this is considered a bug, as previous versions did not have this problem.

Not quite aware of your problem, coz I only found this issue comparing 3.1.7 and 3.1.6. You can check if your issue persists in the latest version and possibly provide a POC.

leovx commented 1 year ago

You will need to change the PR to be against the 3.1.x branch and also fix the checkstyle errors.

Code style issues fixed and rebased to 3.1.x.