tracker issue : CF-4204614

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

cfsetting enablecfoutputonly incorrectly blocks cfsavecontent processing

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Yuliang R. / ()

Created: 06/20/2019

Components: Language, Page Processing Tags

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018.0.04.314546 /

Priority/Frequency: Normal / Most users will encounter

Locale/System: / Win 2016

Vote Count: 0

Problem Description:   
cfsavecontent is 

Steps to Reproduce:

<cfsetting enablecfoutputonly="Yes">
this should not output
<cfoutput>this should output</cfoutput>
<cfsavecontent variable="mycontent">
    inside savecontent I expect this to output because i'm not trying to push this content to output buffer
</cfsavecontent>
<cfoutput>#mycontent#</cfoutput>

Actual Result:
expect to see my "inside savecontent....." 

Expected Result:
don't see it

Any Workarounds:
have to cfoutput inside the savecontent.     i believe the enablecfoutputonly should be trying to affect sending unprocessed text to the output buffer,  not affecting savecontent which isn't sending anything to output buffer.   if my understanding is wrong, this should be updated in cfdocs

Attachments:

Comments:

Hi Yuliang, It's mentioned in the docs that it will output only the content inside cfoutput tag. - [https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-r-s/cfsetting.html]  {color:#333333}enableCFoutputOnly{color} - yes - {color:#333333} blocks output of HTML that is outside cfoutput tags.{color}  If you want to output anything , you need to wrap inside cfoutput tag.  
Comment by Mukesh K.
31021 | July 15, 2019 07:53:00 AM GMT