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) via notifications" <no...@ofbiz.apache.org> on 2026/10/31 07:16:00 UTC

[jira] [Closed] (OFBIZ-13779) TemporalExpressionWorker overflows the stack on a cycle in TemporalExpressionAssoc

     [ https://issues.apache.org/jira/browse/OFBIZ-13779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mridul Pathak closed OFBIZ-13779.
---------------------------------
    Fix Version/s: Upcoming Branch
                   24.09.09
       Resolution: Fixed

> TemporalExpressionWorker overflows the stack on a cycle in TemporalExpressionAssoc
> ----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13779
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13779
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework/service
>    Affects Versions: Upcoming Branch, 24.09.08
>            Reporter: Mridul Pathak
>            Assignee: Mridul Pathak
>            Priority: Minor
>             Fix For: Upcoming Branch, 24.09.09
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> {{TemporalExpressionWorker}} loads child expressions recursively through {{TemporalExpressionAssoc}} without tracking which expressions it is already loading. The {{createTemporalExpressionAssoc}} service does not prevent cycles (A to B to A, or A to itself), so loading such an expression for a persisted job or a calendar ends in a {{StackOverflowError}}.
> h3. Fix
> Track the expression ids on the current load path and throw an {{IllegalArgumentException}} naming the expression when a cycle is found. An expression shared by two parents is still allowed.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)