Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11866

WebconsoleConfigurationHandler does not filter out default values coming from ConfigTaskCreator.getDefaultProperties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • Installer Configuration Factory 1.4.2
    • None
    • Installer
    • None

    Description

      Although MetatypeHandler.updateConfiguration takes the default configurations identified via ConfigTaskCreator.getDefaultProperties(...) as fourth argument it will never strip those properties from the props to update. Therefore WebconsoleConfigurationHandler.updateConfiguration(...) will only ever strip properties which have
      a) a default which is equal to the value to be set and
      b) which are not contained in ConfigTaskCreator.getDefaultProperties(...)

      b) just seem to be wrong as the logic should rather be:
      strip all properties whose value is either equal to the metatype default value or the default value coming from the same named property of the the configuration provided by any of the MERGE_SCHEME configs.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: