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

Choosing a creation restriction location with a comma in the name is not straightforward

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 8.4.3, 9.0-rc-1
    • 8.4.1
    • Administration
    • None
    • Unknown
    • N/A
    • N/A

    Description

      To reproduce:

      • create a new space (nested page) with a comma in the name
      • create a template provider and try to choose the space created above as a creation restriction location, as follows:
      • type a couple of letters from the name
      • choose from the suggestions
      • save

      Upon save, the name of the chosen space will be split in two, on the comma position (see screenshots).

      If, however, after having chosen from the suggestions, you edit the value prefilled by the suggestions and you put a backslash ( \ ) just before the comma, the value will be saved properly (not split). It's not clear though that this needs to be done, and a very legitimate question would be what happens if that document indeed contains a backslash and a comma (a lot less probable, though).

      This issue is a consequence of the limitations of the multiselect suggest tool, it's not specific to template providers (issue XWIKI-8097 is supposed to be about improving this multiselect suggest).

      Attachments

        1. multiselectdisplayer.png
          multiselectdisplayer.png
          95 kB
        2. Selection_023.png
          Selection_023.png
          20 kB
        3. Selection_024.png
          Selection_024.png
          22 kB
        4. Selection_025.png
          Selection_025.png
          10 kB
        5. Selection_026.png
          Selection_026.png
          22 kB
        6. Selection_027.png
          Selection_027.png
          9 kB

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: