atiaomar1978-hub opened a new pull request, #1907:
URL: https://github.com/apache/camel-spring-boot/pull/1907

   ## Summary
   
   Fixes [CAMEL-24532](https://issues.apache.org/jira/browse/CAMEL-24532).
   
   Early-resolution listeners (vault, jasypt, spring-cloud-config) iterate 
Spring `PropertySources` in precedence order (highest first) and collect 
resolved values into a flat `Properties` map that is injected with `addFirst`. 
Using `Properties.put` meant duplicate keys were overwritten by 
lower-precedence sources, so the wrong value became effective after `addFirst`.
   
   This change introduces `EarlyResolutionPropertySources` in 
`core/camel-spring-boot` with `putIfAbsent` and `asString` helpers, updates all 
early-resolution parsers to retain the first (highest-precedence) resolved 
value, and adds regression tests.
   
   ## Test plan
   
   - [x] `mvn -pl core/camel-spring-boot 
-Dtest=EarlyResolutionPropertySourcesTest test`
   - [ ] CI build on PR
   
   _AI-generated PR description on behalf of atiaomar1978-hub_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to