-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regressionA bug that is also a regression
Milestone
Description
Problem
After upgrade from Spring Boot 3.3 to Spring Boot 3.4 a property which uses custom loader and contains placeholder inside it is not resolved properly.
application.yaml
:
spring:
config:
import: sm-stub://
app:
environment: qa
a-service-url: ${sm-stub\://projects/my-project/secrets/${app.environment}_a-service_url/versions/latest}
In the application:
@Value("${app.a-service-url}")
private String aServiceUrl;
The resolved value is "//projects/my-project/secrets/qa_a-service_url/versions/latest"
[NOK]
Expected value is the one returned by the custom property source for the "projects/my-project/secrets/qa_a-service_url/versions/latest"
location.
Minimal reproducible example
https://github.com/semeiskii/spring-boot-property-resolving-bug
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regressionA bug that is also a regression