calling a tag in script without the tag name, doesn't throw an error

Description

this typo doesn't throw an error about an unknown tag (it should be admin action="getScope"), it throws scope isn't defined, maybe a quirk due to auto semi colons rules....

<cfscript> action="getScope" type="server" password="secret" returnVariable="scope"; dump(scope); </cfscript>

should be

<cfscript> admin action="getScope" type="server" password="secret" returnVariable="scope"; dump(scope); </cfscript>

Environment

None

Activity

Zac Spitzer 
26 April 2021 at 14:06

thanks, figured as much, anyway, it’s now documented for anyone else getting confused

Pothys - MitrahSoft 
26 April 2021 at 14:04

The above one doesn't throw error. Because it looks like a variable declaration. Seems ACF also doesn't throw an error for this scenario.

https://trycf.com/gist/9c572ad6330717dbfd1e39bfffdcd60b/lucee5?theme=monokai

Fixed

Details

Assignee

Reporter

Priority

Labels

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

Created 26 April 2021 at 13:25
Updated 26 April 2021 at 14:06
Resolved 26 April 2021 at 14:06