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

Configuration Properties not defined in Metatype are lost after update

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-4.2.8, webconsole-4.2.14
    • webconsole-4.2.16
    • Web Console
    • None

    Description

      Web console when updating items that have metadata will only update the properties defines in metadata.

      This means, the fileinstall file location is removed from the property update. This makes so fileinstall will no longer update the configuration
      file with the change. A simple workaround is to always post back the fileinstall property if present.

      In the ConfigAdminSupport.java file added these lines. In the method applyConfiguration at line 312, insert these lines:

      // Add Fileinstall key or the property will not get written back to the configuration
      if (props.get("felix.fileinstall.filename") != null)

      { updateProps.put("felix.fileinstall.filename", props.get("felix.fileinstall.filename")); }

      If you return the fileinstall filename then fileinstall will save any property changes.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            gossmer Cliff Collins
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: