Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-505

Remove support for attribute splitting in XMLConfiguration

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently XMLConfiguration allows setting multiple values for an attribute node. (This is possible through the Configuration interface, but of course not supported by XML.) When saving the configuration it tries to encode the list as a comma-separated string. On reloading, such strings are split again.

      The implementation of this feature is pretty complex because points like escaping delimiter characters have to be taken into account. I doubt that it works in a reliable way in all possible constellations. OTOH, I don't think that this functionality provides much value to users.

      This ticket is about removing this feature. It will still be possible to add and query multiple values of an attribute as long as the configuration is in memory. When saving, attribute values are checked. If there are multiple values, an exception is thrown.

        Attachments

          Activity

            People

            • Assignee:
              oheger Oliver Heger
              Reporter:
              oheger Oliver Heger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: