You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/09/30 14:07:00 UTC

[jira] [Created] (OFBIZ-13631) Remove the unused FoPrintServerEvents on trunk and restrict the screen location it renders on release24.09

Mridul Pathak created OFBIZ-13631:
-------------------------------------

             Summary: Remove the unused FoPrintServerEvents on trunk and restrict the screen location it renders on release24.09
                 Key: OFBIZ-13631
                 URL: https://issues.apache.org/jira/browse/OFBIZ-13631
             Project: OFBiz
          Issue Type: Improvement
          Components: webtools
    Affects Versions: 24.09.07, Upcoming Branch
            Reporter: Mridul Pathak
            Assignee: Mridul Pathak


{{FoPrintServerEvents.getXslFo}} renders a screen whose location is taken from a {{screenUri}} request parameter, as the {{system}} user, without checking the location. No request-map references it: the mapping was removed in 2016 (OFBIZ-7021) and nothing else in the framework or plugins calls it. Related to open CodeQL alerts.

h3. Proposal

* trunk: remove {{FoPrintServerEvents}}, since it is unused.
* release24.09: keep the class, and check the location with {{WidgetSecureLocation.sanitize}} before rendering, the same check used for included screens. A location that is not allowed is refused.

h3. Release branch

The class is the same on trunk and release24.09. A deletion is not planned for the stable branch, hence the restriction there.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)