XWiki Platform
  1. XWiki Platform
  2. XWIKI-5845

Selecting "Relational Storage" without "Multiselect" for list properties causes loss of data during import or rollback

    Details

    • Difficulty:
      Unknown
    • Similar issues:

      Description

      This happens because ListClass#newPropertyfromXML expects <value> elements if either of the two is set, but <value> elements exist only if Multiselect is enabled.

        Activity

        Hide
        Sergiu Dumitriu added a comment -

        Fixed in r33756.

        Show
        Sergiu Dumitriu added a comment - Fixed in r33756.
        Hide
        Ludovic Dubost added a comment -

        There is a control problem in the classe editor, because the use case "relational storage" AND NOT "multiselect" is not a wanted use case. This leads to an additional join which is not necessary when there is only one selection in the list.

        It's good though to fix this bug, but we should also maybe add some control and warnings that "relational storage" should only be used with multiselect.

        Show
        Ludovic Dubost added a comment - There is a control problem in the classe editor, because the use case "relational storage" AND NOT "multiselect" is not a wanted use case. This leads to an additional join which is not necessary when there is only one selection in the list. It's good though to fix this bug, but we should also maybe add some control and warnings that "relational storage" should only be used with multiselect.

          People

          • Assignee:
            Sergiu Dumitriu
            Reporter:
            Marta Girdea
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: