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

Wrong suggestions from used values for a list property with multiple selection and no relational storage

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.8
    • Fix Version/s: 10.5, 9.11.6
    • Component/s: REST
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Medium
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The issue is that the value retrieved from the database when multiple selection is used without relational storage is actually multiple values joined by some separator and we wrongly handle it as a single value. We need to split the values by the configured separator, remove the values that don't match the text filter and merge the values (remove duplicates).

      Follow this steps to reproduce:

      • create a class with a DBList property configured with multiple selection and no relational storage
      • create an instance of the class and select multiple values
      • edit again the created instance and click on the suggest input; one of the suggestions is the text with the joined selected values

      You can reproduce this also with a Users/Groups property with multiple selection enabled (because these two properties don't use relational storage..).

        Attachments

          Activity

            People

            • Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: