Skip to content

Potential expression conflicts #8

@rsenden

Description

@rsenden

Configuration files may contain ${...} placeholders to reference environment variables/system properties. However, some configuration properties (*Expression) may define expressions that also contain ${...} placeholders. These template placeholders should not be evaluated when the configuration file is loaded, but rather should be passed as-is to the relevant code,

Spring seems to pass ${...} placeholders as-is if the placeholder cannot be resolved as an environment variable or system property, which fits our use cases.

However, potentially this could result in conflicts, for example if an environment variable is defined with the same name as used in a template expression.

It would be much better if we would use different syntax for placeholders resolved at configuration time, and placeholders resolved at some later time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions