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
          95 kB
          Vincent Massol
        2. Selection_023.png
          20 kB
          Anca Luca
        3. Selection_024.png
          22 kB
          Anca Luca
        4. Selection_025.png
          10 kB
          Anca Luca
        5. Selection_026.png
          22 kB
          Anca Luca
        6. Selection_027.png
          9 kB
          Anca Luca

        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: