tracker issue : CF-3975343

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

cfcontent returning eight bytes of gibberish

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): colin macallister / colin macallister (colin macallister)

Created: 04/23/2015

Components: Core Runtime

Versions: 11.0

Failure Type: Data Corruption

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Critical / All users will encounter

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

Vote Count: 0

Duplicate ID:	CF-3975346

Problem Description:		
Not sure when this happened, but it was working in CF11 before updates, at least up until 11,0,03,292480 


Steps to Reproduce:
<cfset local.fileName = "roster-upload.xls" />
<cfset local.s = spreadsheetNew( "Member Import" ) />
<cfset spreadsheetAddRow( local.s, "Email,FirstName,LastName" ) />
<cfheader name="Content-Disposition" value="attachment; filename=#local.fileName#"/>
<cfcontent type="application/vnd.msexcel;" variable="#spreadSheetReadBinary( local.s )#" />

This also occurs if you write the spreadsheet to the file system and then download it with <cfcontent ... file="#myfilepath#">. When I did that, I was able to open the spreadsheet locally on the server to see that the spreadsheet was formed properly. 

It also occurs if you change the content-disposition to inline rather than attachment. It also happened when I set  charset=utf-8, or to iso-8859-1, or as above left it unspecified.


Actual Result:
ÐÏx11;ࡱá is the printable part of what is downloaded.
Note that on our unpatched server this is also the first eight bytes of data, but there's correctly a lot more after that.


Expected Result:
A spreadsheet with Email, FirstName, and LastName in bold on the top row.


Any Workarounds:
None found so far.

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

Watson Bug ID:	3975343

External Customer Info:
External Company:  
External Customer Name: colin
External Customer Email:  
External Test Config: From the info window in the CFIDE, edited for security:



System Information

Server Details

Server Product 	ColdFusion

Version 	11,0,05,293506

Tomcat Version 	7.0.54.0

Edition 	Enterprise  

Operating System 	Windows Server 2008  

OS Version 	6.0  

Update Level 	chf11000005.jar  

Adobe Driver Version 	5.1.3 (Build 000094)  

JVM Details

Java Version 	1.7.0_55  

Java Vendor 	Oracle Corporation  

Java Vendor URL 	http://java.oracle.com/

Java File Encoding 	Cp1252  

Java Default Locale 	en_US  

File Separator 	\  

Path Separator 	;  

Line Separator 	Chr(13)

Java VM Specification Version 	1.7  

Java VM Specification Vendor 	Oracle Corporation  

Java VM Specification Name 	Java Virtual Machine Specification  

Java VM Version 	24.55-b03  

Java VM Vendor 	Oracle Corporation  

Java VM Name 	Java HotSpot(TM) 64-Bit Server VM  

Java Specification Version 	1.7  

Java Specification Vendor 	Oracle Corporation  

Java Specification Name 	Java Platform API Specification  

Java Class Version 	51.0

Attachments:

Comments:

This one is a duplicate, though slightly incorrect, of #CF-3975346. Please close this one. Thanks
Comment by External U.
7734 | April 27, 2015 09:21:43 AM GMT
Thanks Colin for the confirmation.
Comment by Nimit S.
7735 | April 27, 2015 11:55:06 AM GMT