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/10/06 13:26:00 UTC
[jira] [Closed] (OFBIZ-13642) Do not evaluate the parameters of the callback token of forms as expressions
[ https://issues.apache.org/jira/browse/OFBIZ-13642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mridul Pathak closed OFBIZ-13642.
---------------------------------
Fix Version/s: Upcoming Branch
24.09.08
Resolution: Fixed
> Do not evaluate the parameters of the callback token of forms as expressions
> ----------------------------------------------------------------------------
>
> Key: OFBIZ-13642
> URL: https://issues.apache.org/jira/browse/OFBIZ-13642
> Project: OFBiz
> Issue Type: Bug
> Components: framework/widget
> Affects Versions: Upcoming Branch, 24.09.07
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Minor
> Fix For: Upcoming Branch, 24.09.08
>
>
> ModelForm.UpdateArea.toJwtToken puts the query string of the current request (_QBESTRING_) in the parameters of the callback token, and UpdateArea.fromJwtToken turns them into Parameter objects whose values are FlexibleStringExpander, so that values that come from the request are evaluated as expressions when the callback is rendered. The target in the token, which is already evaluated, is evaluated again. The signature of the token only proves that the server issued it, not that what is inside is not request data.
> h3. Plan
> * Create the parameters of the token with literal values, and take the target of the token literally.
> * Backport to release24.09.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)