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

XMLConfiguration changes list format on saving

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1.1
    • Component/s: Format
    • Labels:
      None

      Description

      If the XML document loaded by the configuration contains a string property with multiple values (separated by the list delimiter character), on saving, this property is split into multiple nodes. So

      <list>a,b,c</list>
      

      becomes

      <list>a</list>
      <list>b</list>
      <list>c</list>
      

      This also happens if the property is not touched before saving. The reason for this behavior is that on loading new nodes are created for the single list items (which is required to have an internal model on which queries can be executed). On saving, these nodes are considered new nodes, and thus new XML elements are created for them.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: