tracker issue : CF-3340507

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

Base.cfc's invokeTag() method emits whitespace

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 10/03/2012

Components: Language, Script CFC

Versions: 9.0.1

Failure Type: Data Corruption

Found In Build/Fixed In Build: 9.0.1 / 287929

Priority/Frequency: Critical / Some users will encounter

Locale/System: English / Windows 7

Vote Count: 0

Problem Description:
The invokeTag() method in com.adobe.coldfusion.base.cfc has its output set to TRUE, so it emits all the indentation in the function as whitespace.  This can break white-space senstive output.  If this method needs to emit output (and, really, it should not), then it needs to be controlled better so only the output gets emitted.  But I can't see anything in there that needs outputting (and it would be pretty poor programming if you did).

Steps to Reproduce:
Use the method (or one of the methods that call it).  See the whitespace.


Actual Result:
Whitespace.


Expected Result:
No whitespace.


As a footnote, the code in this method is appalling.  This is a parent CFC and it has references in it to other CFCs that extend it!  This is a bit tragic.  And embarrassing that a very expensive enterprise product has code like this in it (this is before I even observe the fact that all this stuff is implemented with CFCs anyhow, which is a subpar approach to solving the problem they're addressing, but there is another ticket for that).

-- 
Adam

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3340507

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments: