Status/Resolution/Reason: Closed/Deferred/NotEnoughTime
Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)
Created: 02/28/2012
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Public Beta /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Mac 10.7 64-bit
Vote Count: 1
Problem Description:
According to the docs (for cfthread):
"For all actions except run, the cfthread tag must have an empty body and be followed immediately by a </cfthread> end tag, or must have no end tag and have a slash before the tag closure, as in <cfthread action="sleep" duration="1000"/>."
However, this error is not detected. Instead, a non-empty body is silently ignored. The compiler should enforce this check. This also applies to cffile (which newly supports a non-empty body in Zeus) and may apply to several other tags that can have non-empty bodies for certain actions but "must" have an empty body for others.
Steps to Reproduce:
For any tag that may have a body for certain actions but is documented to require an empty body for other actions, add a non-empty body that has observable side-effects and run the tag with any of the actions that "must have an empty body".
Actual Result:
Non-empty body code is simply ignored.
Expected Result:
An exception should be thrown.
Any Workarounds:
None.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3125298
External Customer Info:
External Company:
External Customer Name: SeanACorfield
External Customer Email:
External Test Config: My Hardware and Environment details:
Mac OS X Lion. Also reported by others on Windows and Linux
Attachments:
Comments: