This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-92277b9a-dc24-4ad4-92db-efc01fb62695 XWIKI-25238 Open

The chart macro serves its images through the deprecated temp action from the legacy modules

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1af06ba0-46ce-4ae7-8640-3fba8c13a449 Michael Hamann created this issue on 09/Oct/26 15:57
 
Summary: The chart macro serves its images through the deprecated temp action from the legacy modules
Issue Type: cid:jira-generated-image-avatar-92277b9a-dc24-4ad4-92db-efc01fb62695 Bug
Affects Versions: 14.3
Assignee: Unassigned
Components: Chart
Created: 09/Oct/26 15:57
Priority: cid:jira-generated-image-static-major-82887349-8c75-4331-b69d-6fe665fd309f Major
Reporter: Michael Hamann
Description:

The chart macro (xwiki-platform-chart-macro) builds the URL of the chart images it generates with the "temp" action (TempResourceAction), which is deprecated since 8.3 and only provided by xwiki-platform-legacy-oldcore since 14.3. A non-legacy module must not depend on legacy code: on a distribution without the legacy modules (e.g. the minimal distribution used by the docker functional tests), the chart image doesn't load.

The chart macro should use the "tmp" temporary resource API (TemporaryResourceStore and TemporaryResourceReference, from xwiki-platform-resource-temporary) instead, like the office viewer and the PDF export do.