tracker issue : CF-4202541

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: cfml comment breaks optional semicolon

| View in Tracker

Status/Resolution/Reason: Needs Review/Fixed/FixLater

Reporter/Name(from Bugbase): Aaron Neff / ()

Created: 05/21/2018

Components: Language, CFSCRIPT

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018.0.01.308605 (PreRelease) / 2018.0.0.309819

Priority/Frequency: Normal / All users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issue: cfml comment breaks optional semicolon

Steps to Reproduce:
1) Run:
-----------

{code:java}
<cfscript>
  f = function(){var foo="bar"}
</cfscript>

<!---<cfscript>
  a = "b"
</cfscript>--->
{code}

-----------

Actual Result: Random exception dependent upon the contents of the CFML comment

Expected Result: no output

2) Remove the blank line between the cfscript pairs, or add a semicolon after the code within the 2nd cfscript pair

Actual Result: "--->"

Expected Result: no output

Related post: http://blog.cfaether.com/2018/05/cfml-comment-breaks-optional-semicolon.html

Attachments:

Comments:

Hi Aaron, I dont see any exception when running the code , although the code outputs : "—>". This is a bug and we will fix it. Thanks for reporting it. Thanks, Suchika
Comment by Suchika S.
27910 | May 22, 2018 10:00:58 AM GMT
Hi Suchika, Thanks for confirming the "--->" issue. Regarding exception, that was tricky to repro. I also see same as you now (no exception). So.. there is another factor at play. I shall see if I can narrow down a more solid repro case for the exception issue. Thanks!, -Aaron
Comment by Aaron N.
27920 | May 23, 2018 07:46:11 AM GMT