Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6303

Configuration console silently ignores invalid properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • webconsole-4.5.2
    • webconsole-4.5.4
    • Web Console
    • 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

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: