This issue has been created
There are 6 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-6777b718-1c1f-4f69-b932-c11afc1f4641 XWIKI-22956 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d796acba-f0cc-4202-889e-cf0454a09a10 Michael Hamann created this issue on 07/Mar/25 11:37
 
Summary: Live Data filter value suggestions don't work when the class contains spaces
Issue Type: cid:jira-generated-image-avatar-6777b718-1c1f-4f69-b932-c11afc1f4641 Bug
Affects Versions: 16.4.6
Assignee: Unassigned
Components: Live Data
Created: 07/Mar/25 11:37
Labels: regression
Priority: cid:jira-generated-image-static-blocker-137551a5-34f4-4c9e-92ba-d56e1fbf2ccd Blocker
Reporter: Michael Hamann
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.

 
 

6 updates

 
cid:jira-generated-image-avatar-d796acba-f0cc-4202-889e-cf0454a09a10 Changes by Michael Hamann on 07/Mar/25 11:37
 
Fix Version: 16.10.5
Fix Version: 16.4.8
Fix Version: 17.2.0-rc-1
Version: 16.2.0-rc-1
Version: 16.4.6
Description: *Steps to reproduce:*

# Create a new AWM application with a space in the name
# Add a static list property (you can keep the default settings)
# In the final screen of the wizard, add the property to the columns to display
# Append {{?useLiveData=true}} to the URL
# 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|https://github.com/xwiki/xwiki-platform/blob/36d56539f4554d93c1698e3332a57e0fb3c44f99/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-livetable/src/main/java/org/xwiki/livedata/internal/livetable/LiveTableLiveDataPropertyStore.java#L203-L210]. The URLs are the same as in 15.10.x, what caused this is most likely the switch to Jersey in XWIKI-12674.
 
 

1 comment

 
cid:jira-generated-image-avatar-d796acba-f0cc-4202-889e-cf0454a09a10 Michael Hamann on 07/Mar/25 11:41
 

I've confirmed that this issue reproduces in XWiki 16.2.0, I've updated the affects version.