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

webconsole.configurationFactory.nameHint only detected via ConfigurationAdmin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • webconsole-4.7.2
    • Web Console
    • None

    Description

      The configuration object exposed from https://github.com/apache/felix-dev/blob/4c784623cc0dac44dbbe82027caf3eeb44020cb6/webconsole/src/main/java/org/apache/felix/webconsole/internal/configuration/ConfigJsonSupport.java#L237 only contains the explicitly set properties but not the ones the component description of DS (http://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.component.html#service.component-property.properties.elements) which is evaluated as well at http://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.component.html#service.component-component.properties.

      That means that if a DS component leverages metatype based configuration, only its properties are queried for webconsole.configurationFactory.nameHint while usually it does not make sense to include that attribute in the metatype definition (as you don't want to make it changeable).

      Instead the full service properties as exposed from https://docs.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html#getProperty(java.lang.String) should be queried to look for webconsole.configurationFactory.nameHint.

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: