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

Live Data filter value suggestions don't work when the class contains spaces

    XMLWordPrintable

Details

    • Unknown

    Description

      Steps to reproduce:

      1. Create a new AWM application with a space in the name
      2. Add a static list property (you can keep the default settings)
      3. In the final screen of the wizard, add the property to the columns to display
      4. Append ?useLiveData=true to the URL
      5. Open the select for the static list property

      Expected result:

      The configured values are displayed so they can be selected.

      Actual result:

      No values are displayed.

      This is because the request to the URL /xwiki/rest/wikis/xwiki/classes/Demo+With+Spaces.Code.Demo+With+SpacesClass/properties/staticList1/values?fp=f&limit=10 fails. Replacing + by %20 works. The problematic code that generates these + values is here in LiveTableLiveDataPropertyStore. The URLs are the same as in 15.10.x, what caused this is most likely the switch to Jersey in XWIKI-12674.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            MichaelHamann Michael Hamann
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: