tracker issue : CF-3940770

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

cfhttp put creates a zero length file

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): EvenGame Webmaster / EvenGame Webmaster (EvenGame Webmaster)

Created: 02/16/2015

Components: Net Protocols, HTTP

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Problem Description: I am using http to post a file upload to a third party. The code works fine in CF11 without update 3, when applying update 3 or update 4 beta, the file uploaded results in a zero length file. The file in question is a simple text file.

Steps to Reproduce:
write some code to upload a file and try to use it. My example uses a 3rd party where I am uploading a text file to late use to send email to email addresses contained in that text file.

	function httpPutTest(event,rc)
	{
		cfhttp(result = "LOCAL.result",method = "put",url = "https://api.elasticemail.com/attachments/upload?username=email@domain.com&api_key=myKeyRemoved&file=Test")
        {
	        cfhttpParam(type = "file",name="Test",file="c:\temp\test.csv",mimetype="Content-type: text/csv");
        } 
        
	 	cfhttp(result = "LOCAL.result2",method = "post",
	        url = "https://api.elasticemail.com/mailer/send")
	        {
	         cfhttpParam(type="formfield",name="username",value="email@domain.com");
	         cfhttpParam(type="formfield",name="api_key",value="myKeyRemoved");
	         cfhttpParam(type="formfield",name="subject",value="Test");
	         cfhttpParam(type="formfield",name="data_source",value="Test");
	         cfhttpParam(type="formfield",name="template",value="BlankTemplate");
	        } 
			writedump(LOCAL);abort;  
	}	

Actual Result: The text file uploaded is zero length. Nothing is contained in the text file. This only happens after appyling update 3 to CF11. The code works fine in CF11 without update 3 or beta 4 applied.

Expected Result: The text file should contain the contents of the file.

Any Workarounds: Don't upgrade to Update 3 is what I have done so far.

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

Watson Bug ID:	3940770

External Customer Info:
External Company:  
External Customer Name: EvenGame
External Customer Email:  
External Test Config: My Hardware and Environment details:

CF11 with update 3 fails, cf11 with no updates works as expected.

Attachments:

Comments:

We are not able to repro the issue, with update 3. Please let us know if there was any error/exception logged in server log files. Thanks.
Comment by Akhila K.
8460 | February 19, 2015 05:21:19 AM GMT