This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-9e732a02-68fc-4ddf-9d66-ba05081d15b6 XWIKI-23690 Open

The LiveData script service query() method doesn't honor the "sourceParameters" parameter

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-5730aeee-1757-4110-89e8-4d354532e188 Vincent Massol created this issue on 04/Nov/25 13:43
 
Summary: The LiveData script service query() method doesn't honor the "sourceParameters" parameter
Issue Type: cid:jira-generated-image-avatar-9e732a02-68fc-4ddf-9d66-ba05081d15b6 Improvement
Affects Versions: 16.10.0
Assignee: Unassigned
Components: Live Data
Created: 04/Nov/25 13:43
Priority: cid:jira-generated-image-static-major-2afa567a-2ac2-4a28-9eb2-b3b4ee6d2c9b Major
Reporter: Vincent Massol
Description:

Take the following script:

#set ($properties = {
  'id' : 'moreLD',
  'properties' : 'doc.title',
  'source' : 'liveTable',
  'sourceParameters' : "className=DocApp.Code.DocumentationClass&resultPage=DocApp.Code.LandingPageLiveTableResults&translationPrefix=docapp.&location=$services.model.serialize($doc.documentReference.parent, 'local')"
})
$services.liveData.query($properties)

{{html}}
  $services.liveData.render($properties)
{{/html}}

The call to render() works fine and displayed 0 results in my case, but the call to query()} returned 765 entries (ie all the pages of the wiki). The problem seems to be in {{StringLiveDataConfigurationResolver#resolve(liveDataConfigJSON)) which returns a LiveDataConfiguration object that doesn't contain the sourceParameters content.