tracker issue : CF-4090508

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

[ANeff] Bug for: cfhttp concatenates query strings w/ ?

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 11/22/2015

Components: Net Protocols

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on August 28, 2019 using build 2016.0.01.298513
cfhttp doesn't check if url attribute contains "?" before appending type="url" cfhttpparams 

Steps to reproduce:

1) Run this:

index.cfm
-----------
<cfscript>
  cfhttp(method="post", url="http://#CGI.HTTP_HOST##getDirectoryFromPath(CGI.SCRIPT_NAME)#/mypage.cfm?foo=bar") {//same issue when method="get"
      cfhttpparam(type="url", name="bar", value="foo");
      cfhttpparam(type="url", name="a", value="b");
  }
  if(SERVER.keyExists("cfhttpParamConcat")) {
      writeDump(SERVER.cfhttpParamConcat);
  }
</cfscript>

mypage.cfm
-----------
<cfset SERVER.cfhttpParamConcat = CGI.QUERY_STRING>

Actual result: foo=bar?bar=foo&a=b

Expected result: foo=bar&bar=foo&a=b

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

Watson Bug ID:	4090508

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:  
External Test Config: Verified in CF11 Update 5 (build 11,0,05,293506) and build 11,0,0,296013

Attachments:

Comments:

The fix will be available in the next update of ColdFusion 11. Thanks!
Comment by S P.
5255 | December 01, 2015 11:10:06 PM GMT
Hi Preethi, Awesome, thanks very much! -Aaron
Comment by External U.
5256 | December 01, 2015 11:19:30 PM GMT
That was pretty fast :)
Comment by External U.
5257 | December 01, 2015 11:20:13 PM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31240 | August 28, 2019 10:23:49 AM GMT