tracker issue : CF-4200346

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

Body Ignored in CFHTTP DELETE

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Matthew Clemente / Matthew Clemente ()

Created: 12/11/2017

Components: Net Protocols, HTTP

Versions: 2016,11.0,2018

Failure Type: Non Functioning

Found In Build/Fixed In Build: 11,0,13,303668 / update

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Win 2012 Server x64

Vote Count: 2

Problem Description: ColdFusion ignores the body content sent via HTTP DELETE requests. This is similar to this fixes bug: https://tracker.adobe.com/#/view/CF-4149198

As I understand it, while it is commonly recommended not to send a DELETE request body, the spec (https://tools.ietf.org/html/rfc7231#section-4.3.5) does not explicitly disallow it. 

Furthermore, prominent public APIs, including Cloudflare and SendGrid, utilize request bodies in their DELETE methods. Utilizing these APIs with ColdFusion is difficult due to this current limitation.

Steps to Reproduce:
______________________________
index.cfm
<cfoutput>
	<cfscript>
		cfhttp( method="DELETE", charset="utf-8", url="PATH-TO-OTHER-PAGE/showrequest.cfm", result="result" ) {
		    cfhttpparam( type="body", value="hello" );
		}
		writeOutput( result.filecontent );
	</cfscript>

</cfoutput>
______________________________
showrequest.cfm
<cfoutput>
<cfdump var="#getHttpRequestData().content#" format="html" abort="true">
</cfoutput>
______________________________

Actual Result: [empty string]

Expected Result: hello

Any Workarounds: Using a Java HTTP implementation

Attachments:

Comments:

Hi Matthew I acknowledge this an issue at your end. I am putting this forward with the concerned team to raise a flag that why it was not fixed as part of bug CF-4149198 fix. If no concerns then we will take this up in next update. Thanks Poonam
Comment by Poonam J.
168 | December 18, 2017 08:57:46 AM GMT
Thanks! I appreciate it!
Comment by Matthew C.
169 | January 04, 2018 07:24:15 PM GMT
This is indeed a big issue. Many API's require a body with the delete request!
Vote by JEROEN G.
170 | March 02, 2018 09:52:29 PM GMT
I agree that needs to be fixed!
Vote by Peter v.
171 | March 02, 2018 09:53:18 PM GMT
Just ran into this issue with another API (SendGrid). Any update on the status of this?
Comment by Matthew C.
29124 | June 21, 2018 08:44:25 PM GMT
Just wanted to follow up on this again? Any updates?
Comment by Matthew C.
29264 | July 10, 2018 03:09:06 PM GMT
The fix will be available in next update of CF2018 and CF12.
Comment by Poonam J.
29420 | August 02, 2018 10:35:40 AM GMT
Thanks for the update. Core support for ColdFusion 11 doesn't end for another 9 months (4/30/2019). Any insight as to why won't it be included in an update to ColdFusion 11 as well?
Comment by Matthew C.
29421 | August 02, 2018 10:41:37 AM GMT
Yes, we also have some CF11 servers end we are nog planning to upgrade them. Our Coldfusion code is on different versions of CF11 and 12 servers so for consistancy we would also need this on CF11
Comment by JEROEN G.
29422 | August 02, 2018 10:54:12 AM GMT
I have marked the bug for CF11 update as well. We will evaluate and incorporate this bug during CF11 bug fix update. To reiterate, the fix for this bug  will be available in bug fix update of  CF12 and CF2018   Thanks Poonam
Comment by Poonam J.
29425 | August 03, 2018 04:02:26 AM GMT