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

Configuration values should be compared by string comparison

    XMLWordPrintableJSON

Details

    Description

      ConfigUtil.isSameData has some logic which compares two configuration dictionaries:

      • if the value from dictionary A is a number, a special handling is done which results in string compare if the value from B is a number as well
      • otherwise equals is used

      Now, if A contains a string and B contains a number, both representing the same value, the dictionaries are considered to be not the same; the special handling is questionable as it only works in one direction.

      I think we can relax this and always do a string compare

      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: