Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-97

[configuration] XMLConfiguration does not correctly handle comma delimited lists

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      XMLConfiguration has some issues with comma (or the currently set delimiter
      character) delimited lists:

      1) If an XML element contains the delimiter character, it will not be splitted
      into a list element, but is taken as one property whose value contains the
      delimiter character.

      2) If an XML element contains an escaped delimiter character, the corresponding
      property's value will be the exact string, including the escaping character.

      3) If properties are set whose values contain escaped delimiters, no escaping is
      performed when saving the configuration into a file. Thus when it is loaded the
      next time, those properties are now list properties.

        Activity

        Hide
        Oliver Heger added a comment -

        Fix committed.

        Show
        Oliver Heger added a comment - Fix committed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development