This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-ba0071c5-446b-455b-8aca-8b08998235ad XWIKI-22437 Open

In-place Edit of Live Data Macro when using Live Data Sources does not work on subwikis

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f1c85cce-2c81-4623-9bc2-ae23a52d9fee Lucian Chevereseanu created this issue on 20/Aug/24 13:56
 
Summary: In-place Edit of Live Data Macro when using Live Data Sources does not work on subwikis
Issue Type: cid:jira-generated-image-avatar-ba0071c5-446b-455b-8aca-8b08998235ad Bug
Affects Versions: 15.10.10, 15.10.11, 16.6.0
Assignee: Unassigned
Attachments: Screenshot 2024-08-20 134248.png, Screenshot 2024-08-20 142356.png, Screenshot 2024-08-20 143523.png
Created: 20/Aug/24 13:56
Priority: cid:jira-generated-image-static-major-e98e2d22-83c7-47b0-88eb-58d11ceb3e55 Major
Reporter: Lucian Chevereseanu
Description:

Steps to reproduce:
1. Create a subwiki and a user

2. Inside a page of the created subwiki, using the wiki editor, add a Live Data Macro that uses Live Data Sources and save the page. e.g:

{{liveData2  id="users"3  properties="_avatar,doc.name,first_name,last_name"4  source="liveTable"5  sourceParameters="className=XWiki.XWikiUsers&translationPrefix=xe.userdirectory."6/}}

3. Hover over the name, click the edit icon and change the name

 

4. Click anywhere outside the select box to save the change

Expected result:
The name changes, and the table is refreshed

 

Actual result:

You get, at the bottom of the screen, the error: “The row save action failed” and the change is not saved.
This only happens on subwikis; on the main wiki I did not reproduce.

Screenshot of the error: 42784_Screenshot+2024-08-20+134248.png

 

Screenshots of the Network tab:
42783_Screenshot+2024-08-20+142356.png

 

temp13724997046427317045_Screenshot%202024-08-20%20143523.png

 
 

1 update

 
cid:jira-generated-image-avatar-f1c85cce-2c81-4623-9bc2-ae23a52d9fee Changes by Lucian Chevereseanu on 20/Aug/24 13:56
 
Description: * Steps to reproduce: *
1. Create a subwiki and a user

2. Inside a page of the created subwiki, using the wiki editor, add a Live Data Macro that uses Live Data Sources and save the page. e.g:
{code:java}
{{
liveData2 liveData
  
  id="users" 3
  
  properties="_avatar,doc.name,first_name,last_name" 4
  
  source="liveTable" 5
  
  sourceParameters="className=XWiki.XWikiUsers&translationPrefix=xe.userdirectory." 6
/}}{code}
3. Hover over the name, click the edit icon and change the name

 

4. Click anywhere outside the select box to save the change

 

 

*
Expected result: *
The name changes, and the table is refreshed

 

* Actual result: *

You get, at the bottom of the screen, the error: “The row save action failed” and the change is not saved.
This only happens on subwikis; on the main wiki I did not reproduce.

Screenshot of the error:
 

  !Screenshot 2024-08-20 134248.png| width=546,height=127 thumbnail !

 

 

Screenshots of the Network tab:
!Screenshot 2024-08-20 142356.png|
width=564,height=290 thumbnail !

 

!
https://jira.xwiki.org/secure/temporaryattachment/0492ab5fbc56091e783b98942172307e03b98993/temp13724997046427317045_Screenshot%202024 Screenshot 2024 -08-20 %20143523 143523 .png|width= 566 196 ,height= 130 44,thumbnail !