Details
Assignee
UnassignedUnassignedReporter
Markus WollnyMarkus WollnyPriority
NewNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Details
Details
Assignee
Unassigned
UnassignedReporter
Markus Wollny
Markus WollnyPriority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 7 September 2023 at 10:24
Updated 8 September 2023 at 10:22
This may be somewhat related to https://luceeserver.atlassian.net/browse/LDEV-4157, but in this specific case,
<cfloop condition="">
is the expression that causes Lucee to fail.<cfscript> ``` <cfset i = 0> <cfloop condition="i <= 3"> <cfoutput>#i#</cfoutput><br /> <cfset i++> </cfloop> ``` </cfscript>
This fails with
missing parent Statement of Statement
error with following start of a stack trace:lucee.runtime.exp.TemplateException: missing parent Statement of Statement at lucee.transformer.cfml.evaluator.impl.Loop.evaluate(Loop.java:203) at lucee.transformer.cfml.evaluator.EvaluatorPool.run(EvaluatorPool.java:79) at lucee.transformer.cfml.tag.CFMLTransformer.transform(CFMLTransformer.java:355) at lucee.transformer.cfml.script.AbstrCFMLScriptTransformer.islandStatement(AbstrCFMLScriptTransformer.java:2044)
The same code outside a cfscript tag island works just as expected.