tracker issue : CF-3125298

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

Tag body silently ignored when it "must" be empty

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/NotEnoughTime

Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)

Created: 02/28/2012

Components: Language, Tags

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:

Will be considered for the next release.
Comment by Rupesh K.
20532 | March 04, 2012 08:25:50 PM GMT
OK, we're now on the release AFTER that. Can you pls reopen and deal with it. There's no way code should ever be ignored!
Comment by External U.
20533 | December 10, 2014 07:53:56 AM GMT
+1 Vote must be between 25 and 4000 characters
Vote by External U.
20534 | December 10, 2014 07:54:12 AM GMT