Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
webconsole-4.5.2
-
None
Description
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