You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/10/16 11:36:00 UTC
[jira] [Commented] (OFBIZ-13691) Plugin demo DataResources of type LOCAL_FILE are rejected by the LOCAL_FILE allow-list
[ https://issues.apache.org/jira/browse/OFBIZ-13691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18127801#comment-18127801 ]
ASF subversion and git services commented on OFBIZ-13691:
---------------------------------------------------------
Commit a52df347ce101aa4a91c688ac0e22f667165a318 in ofbiz-plugins's branch refs/heads/trunk from Mridul Pathak
[ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=a52df347c ]
Fixed: Plugin demo DataResources of type LOCAL_FILE are rejected by the LOCAL_FILE allow-list (OFBIZ-13691)
- ecommerce: TPL_XML_MB is now an OFBIZ_FILE pointing at plugins/ecommerce/template/content/TplMbContent.ftl, so it is checked against content.data.ofbiz.file.allowed.paths and the ECMC demo content renders with its template again.
- scrum: the DemoContentProduct, DemoContentBacklog and DemoContentProject demo contents are now stored as ELECTRONIC_TEXT, since the DEMO-CONTENT.xml file they pointed to was removed in OFBIZ-11587.
> Plugin demo DataResources of type LOCAL_FILE are rejected by the LOCAL_FILE allow-list
> --------------------------------------------------------------------------------------
>
> Key: OFBIZ-13691
> URL: https://issues.apache.org/jira/browse/OFBIZ-13691
> Project: OFBiz
> Issue Type: Bug
> Components: ecommerce, scrum
> Affects Versions: Upcoming Branch, 24.09.08
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Major
>
> Since the LOCAL_FILE allow-list was introduced ({{content.data.local.file.allowed.paths}}, default {{runtime/tmp/}}), demo DataResources that use {{LOCAL_FILE}} with a {{component://}} objectInfo resolve to a path under {{plugins/}} and are rejected with "Access to file denied: path is not within an allowed directory".
> * ecommerce {{TPL_XML_MB}} (template of the {{ECMC*}} demo content) is skipped when the content is rendered.
> * scrum {{DemoContentProduct}}, {{DemoContentBacklog}} and {{DemoContentProject}} fail with an error page in {{ViewSimpleContent}}. Their file {{scrum/data/helpdata/DEMO-CONTENT.xml}} has also been missing since OFBIZ-11587.
> Fix the demo data instead of widening the LOCAL_FILE allow-list:
> * Change {{TPL_XML_MB}} to {{OFBIZ_FILE}} with {{objectInfo="plugins/ecommerce/template/content/TplMbContent.ftl"}}, which is checked against {{content.data.ofbiz.file.allowed.paths}}.
> * Store the scrum demo content as {{ELECTRONIC_TEXT}} instead of pointing at a file.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)