Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Carlos Alonso / Carlos Alonso (Carlos Alonso)
Created: 06/30/2015
Components: General Server
Versions: 11.0
Failure Type: Usability Issue
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2012 Server x64
Vote Count: 1
Problem Description:
When streaming HTML content via CFHEADER/CFCONTENT tags to Excel, an error message is displayed stating "The file format and extension of [file_name.xls] do not match. The file could be corrupt or unsafe." and the actual HTML code is displayed in the resulting Excel spreadsheet. We just migrated from CF8.01 to CF11 and the exact same code would produce the spreadsheet with the HTML code rendered as a pseudo-Excel spreadsheet.
Steps to Reproduce:
Create a .cfm file with
<CFCONTENT TYPE="application/msexcel">
<CFHEADER NAME="Content-Disposition" VALUE="inline;filename=file_name.xls">
Create an HTML table with a few rows and columns.
Actual Result:
The actual HTML code the ColdFusion produces is displayed in the Excel spreadsheet.
Expected Result:
The rendered HTML table with the columns and rows should appear.
Any Workarounds:
Including the tag <CFSETTING ENABLECFOUTPUTONLY="Yes"> seems to help but still results in any formatting applied to the table's <TD> being lost.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4014690
External Customer Info:
External Company:
External Customer Name: Carlos
External Customer Email:
External Test Config: My Hardware and Environment details:
ColdFusion 11,0,04,293328
Windows Server 2012
Attachments:
- July 01, 2015 00:00:00: 1_Actual_Result.jpg
- July 01, 2015 00:00:00: 2_Improved_Result_with_ENABLECFOUTPUTONLY_YES.jpg
Comments: