[
https://issues.apache.org/jira/browse/FELIX-6303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler closed FELIX-6303.
-----------------------------------
> Configuration console silently ignores invalid properties
> ---------------------------------------------------------
>
> Key: FELIX-6303
> URL: https://issues.apache.org/jira/browse/FELIX-6303
> Project: Felix
> Issue Type: Bug
> Components: Web Console
> Affects Versions: webconsole-4.5.2
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Priority: Critical
> Fix For: webconsole-4.5.4
>
>
> When an OSGi configuration has a metatype information for a property which is
> not a string, the value provided throught the console is converted to that
> type, before setting the configuration property [1]
> If the conversion fails, the value is ignored [2]
> For example, if the metatype specifies the type to be Integer (like for a
> port number etc) and a placeholder is used as the value using the
> interpolation plugin (like $[env:HTTP_PORT]) then this string value is never
> set. It would be better to allow such values and not silently ignore them
> [1]
> https://github.com/apache/felix-dev/blob/9bd66812f21944925268bfd5551218c436886d30/webconsole/src/main/java/org/apache/felix/webconsole/internal/configuration/ConfigAdminSupport.java#L240
> [2]
> https://github.com/apache/felix-dev/blob/9bd66812f21944925268bfd5551218c436886d30/webconsole/src/main/java/org/apache/felix/webconsole/internal/configuration/ConfigAdminSupport.java#L244
--
This message was sent by Atlassian Jira
(v8.3.4#803005)