You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/02/03 13:01:00 UTC

[jira] [Assigned] (FELIX-6590) [Interprolator Plugin] cascading defaults error

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

Carsten Ziegeler reassigned FELIX-6590:
---------------------------------------

    Assignee: Carsten Ziegeler

I think we are not processing placeholders in the directives

> [Interprolator Plugin] cascading defaults error
> -----------------------------------------------
>
>                 Key: FELIX-6590
>                 URL: https://issues.apache.org/jira/browse/FELIX-6590
>             Project: Felix
>          Issue Type: Bug
>          Components: Configuration Admin
>            Reporter: Jürgen Albert
>            Assignee: Carsten Ziegeler
>            Priority: Major
>
> I have the following construct:
> $[env:MQTT_WRITE_HOST;default='$[prop:MQTT_WRITE_HOST;default=some.host]']
> The Goal is, env -> prop -> default
> The result unfortunately is not as expected. if I have no default for the props statement, the fallback works and it tries to resolve the property if the env is not set. If I have the second default for the case that nothing is set, the env immediately defaults to  "some.host]".
> The Quotes for the default make no difference in this case, even if I only quote the value of the last default. My current workaround is $[env:MQTT_WRITE_HOST;default=]$[prop:MQTT_WRITE_HOST;default=some.host]
> Additionally a convinient version like propEnv and envProp would be nice to cover suche a case in on statement.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)