tracker issue : CF-4177084

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

When enablecfoutputonly is on, output cascades into included templates.

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/Workaround

Reporter/Name(from Bugbase): Stephen Baker / Stephen Baker (Stephen Baker)

Created: 07/29/2016

Components: Core Runtime

Versions: 10.0

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description:
<CFOUTPUT> tags cascade into an included template with respect to output for the enablecfoutputonly setting, but not for processing #s.

Steps to Reproduce:

Create two files:

a.cfm
```
<CFSETTING enablecfoutputonly="yes">
<CFOUTPUT><CFINCLUDE template="b.cfm"></CFOUTPUT>
```

b.cfm
```
<CFSETTING enablecfoutputonly="yes">
<CFOUTPUT>should show this</CFOUTPUT> and not this
```

Call a.cfm

Actual Result:
should show this and not this

Expected Result:
should show this

Any Workarounds:
Do not wrap <CFINCLUDE> with <CFOUTPUT>, Then included template is assumed to have enablecfoutputonly on as well, but that can be solved with a <CFSETTING> directive before and after the CFINCLUDE

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

Watson Bug ID:	4177084

External Customer Info:
External Company:  
External Customer Name: Stephen Baker
External Customer Email:

Attachments:

Comments:

Encountered while using an old version of fusebox, which includes all templates in such a wrapper.
Comment by External U.
2078 | July 29, 2016 11:28:39 AM GMT
Thanks Stephen for pointing this out. This is a very old behavior. I am able to repro the same issue on CF8 as well. Fixing this issue may break backward compatibility.
Comment by Nimit S.
2079 | August 02, 2016 06:45:24 AM GMT
Stephen, I am closing this bug for now. If there are enough votes to this. We may revisit this bug.
Comment by Nimit S.
2080 | August 08, 2016 07:13:38 AM GMT