Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-11807

Migrate existing values when changing the multiselect separator for non-relational list properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 7.0-milestone-1
    • Old Core
    • Unknown

    Description

      When editing a class and changing the multiselect separator used in a list property that is not relationally stored (i.e. that is stored in a LargeStringProperty, delimited by separator(s)), the existing values are not updated, so anyone editing objects after the change is made will have unexpected results.

      Example:
      1. Stored: a|b|c -> a list with 3 elements: [a, b, c]
      2. Change separator to ","
      3. a|b|c -> a list with 1 element: [a|b|c] (because the stored value's separator is still the old one and the ListClass.fromString() method can not properly deserialize the stored data into multiple elements.

      Attachments

        Issue Links

          Activity

            People

              enygma Eduard Moraru
              enygma Eduard Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: