tracker issue : CF-3954631

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

You cannot mix the use of cfhttpparam tags of type file or form field with cfhttpparam tags of type body or XML

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): saritha bollineni / saritha bollineni (saritha bollineni)

Created: 03/17/2015

Components: Net Protocols, HTTP

Versions: 10.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: Final /

Priority/Frequency: Critical / All users will encounter

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

Vote Count: 0

Problem Description:You cannot mix the use of cfhttpparam tags of type file or form field with cfhttpparam tags of type body or XML

Steps to Reproduce:<cfhttp method="put" url="#destURL#" result="httpCrtResp" timeout="600"> 
 <cfhttpparam type="header" name="Authorization" value="Bearer #access_token#" />
 <cfhttpparam type="header" name="accept" value="application/json" />
 <cfhttpparam type="header" name="Content-Type" value="multipart/form-data" /> 
 <cfhttpparam type="formfield" name="listname" value="#listname#" />
 <cfhttpparam type="formfield" name="headings" value="Y" />
 <cfhttpparam type="formfield" name="fieldseparator" value="COMMA" />
 <cfhttpparam type="formfield" name="quotecharacter" value="DOUBLE_QUOTE" />
 <cfhttpparam type="formfield" name="uploadspecs" value="#restHdr#" />
 <cfhttpparam type="formfield" name="mergespecs" value="#mergespecs#" />
 <cfhttpparam type="file" name="file" file="#csvZipFile#" 

mimetype="application/zip" /> 

Actual Result: 400 Bad Request

Expected Result: Successful Job Id

Any Workarounds: No

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

Watson Bug ID:	3954631

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



Windows Server 2008 R2 Enterprise Service Pack1, ColdFusion 10 Update 15

Attachments:

Comments:

I found this bug in continuation to bug#CF-3537036
Comment by External U.
8029 | March 17, 2015 10:31:20 AM GMT
Please provide the proper test code to repro the issue.
Comment by Akhila K.
8030 | July 09, 2015 05:32:39 AM GMT
This is expected behavior. Please refer to documentation: https://wikidocs.adobe.com/wiki/display/coldfusionen/cfhttpparam An XML type attribute cannot be used with additional XML type attributes, or with body, file, or formField type attributes. A body type attribute cannot be used with additional body type attributes, or with XML, file, or formField type attributes.
Comment by Akhila K.
8031 | July 09, 2015 05:42:44 AM GMT