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/26 13:02:00 UTC
[jira] [Closed] (OFBIZ-13613) Regression in the minilang-to-Groovy conversion of ProductStoreServices.groovy
[ https://issues.apache.org/jira/browse/OFBIZ-13613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mridul Pathak closed OFBIZ-13613.
---------------------------------
Fix Version/s: Upcoming Branch
24.09.08
Resolution: Fixed
> Regression in the minilang-to-Groovy conversion of ProductStoreServices.groovy
> ------------------------------------------------------------------------------
>
> Key: OFBIZ-13613
> URL: https://issues.apache.org/jira/browse/OFBIZ-13613
> Project: OFBiz
> Issue Type: Bug
> Components: product/catalog
> Affects Versions: Upcoming Branch, 24.09.07
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Major
> Fix For: Upcoming Branch, 24.09.08
>
>
> Found via the minilang-to-Groovy regression audit (OFBIZ-13523). One further regression on top of the prior fix (OFBIZ-13576).
> h3. {{reserveStoreInventory()}} throws when the optional {{orderId}} is omitted
> {code:java}
> GenericValue orderHeader = from('OrderHeader').where(parameters).queryOne()
> parameters.priority = orderHeader.priority
> {code}
> Servicedef declares {{orderId}} optional. When omitted or non-matching, {{orderHeader}} is null and this throws NPE, aborting the whole reservation. Mini-lang's equivalent resolved to null with no exception.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)