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

Simplify updating of OSGi configurations through REST API

    XMLWordPrintableJSON

Details

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

    Description

      When updating a single value using the REST API the unreferenced properties in a configuration is deleted, this is not what the documentation is saying on: 

      https://felix.apache.org/documentation/subprojects/apache-felix-web-console/web-console-restful-api.html#configuration-admin-plugin

      If I instead add all the properties to the propertyList parameter all those referenced are updated and/or saved .

       

      This cannot be right because I will then have to query for all parameters before I am able to update a single one.

      Since there is a delete option in the REST API this should only as stated in the documentation update the referenced parameters and leave all others untouched.

       

      Either add an extra option with the possibility to delete unreferenced properties.

      or remove the code all together.

       

      The code that does the deletion is here: 

      https://github.com/apache/felix-dev/blob/ab2c3ac3a570ba316daeb6368bab8193805f37c0/webconsole/src/main/java/org/apache/felix/webconsole/internal/configuration/ConfigAdminSupport.java#L304

       

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            peter.grape Peter Grape
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: