You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Raymond Augé (Jira)" <ji...@apache.org> on 2022/04/10 03:14:00 UTC

[jira] [Resolved] (FELIX-6518) Enable interpolation plugin to self reference properties

     [ https://issues.apache.org/jira/browse/FELIX-6518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Augé resolved FELIX-6518.
---------------------------------
    Resolution: Fixed

See c233f6922db4adb758bd65529e41fab3ecffd5c8

> Enable interpolation plugin to self reference properties
> --------------------------------------------------------
>
>                 Key: FELIX-6518
>                 URL: https://issues.apache.org/jira/browse/FELIX-6518
>             Project: Felix
>          Issue Type: New Feature
>          Components: Configuration Admin
>            Reporter: Raymond Augé
>            Assignee: Raymond Augé
>            Priority: Major
>             Fix For: configadmin-interpolation-plugin-1.2.4
>
>
> Currently there is no interpolation for self referencing another property within the same configuration.
> For example, if you have the following:
> {code}
> host="https://foo.bar"
> resource="${host}/some/resource"
> {code}
> unless you are specifically using Felix File Install (which supports this) there will not be any resolving of {{$\{host\}}}.
> h3. Proposal
> In order to not break any existing use cases, add a new type called {{conf}} (short for _from configuration_). The above would become:
> {code}
> host="https://foo.bar"
> resource="$[conf:host]/some/resource"
> {code}
> and be subject to the same features as {{env, prop, secret}}.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)