tracker issue : CF-3987369

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

CGI.http_url encoding inconsistent with CF9

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Chris Hopkins / Chris Hopkins (Chris Hopkins)

Created: 05/13/2015

Components: Installation/Config, Connector

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final / CF11 Update7,CF10 Update18

Priority/Frequency: Major / Few users will encounter

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

Vote Count: 0

Listed in the version Issues Fixed doc
Problem Description:

Apostrophes in URL are encoded in CF9 but not in CF11 in CGI.HTTP_URL

Steps to Reproduce:

URL : index.cfm?place=Connah's Quay

<cfdump var="#cgi.http_url#">

Actual Result:

CF11 : index.cfm?place=Connah's%20Quay
CF 9 : index.cfm?place=Connah%27s%20Quay

Expected Result:

CF11 : index.cfm?place=Connah%27s%20Quay
CF 9 : index.cfm?place=Connah%27s%20Quay

Any Workarounds:

replace apostrophes manually

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

Watson Bug ID:	3987369

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

CF9 & cf11 update 5 on windows 2008R2 IIS7



I am not 100% sure this is a Cf bug anymore,I thought all servers tested had the same setup with the exception of CF version, but have since seen different behaviour on the same servers so it is likely an issue with IIS.
Comment by External U.
7464 | June 22, 2015 09:04:54 AM GMT
Chris, I don't see the querystr part in the output for CGI.http_url for CF11 at all with the URL in the bug report and the test code: writeOutput("CGI.http_url: " & CGI.http_url & "<br>"); Here's platform I tried this on: CF 11,0,05,293506 on windows server 2008 R2 / IIS 7.5 - connector reconfigured post u5. CF 9 : CF 9,0,0,251028 / windows server 2008 R2 / IIS 7.5 This is at odds with your observation. Can you please share the OS, the webserver and CF version (with update level and build no.) You tried this on?
Comment by Piyush K.
7465 | August 14, 2015 12:41:32 AM GMT
Odd i now get the same functionality that you see, The example above is not exactly how i use the functionality it just always used to work that way. I use it in the following manner index.cfm/place/Connah%27s%20Quay or index.cfm/key/value. CGI.http_url should contain the querystring and anything else sent to the webserver as i understand (have seen hashes passed as well before). The only documentation for it i have found though is for IIS 6, although when using CF 9 with IIS 7 it also worked fine. My setup getting the same results as you is CF11 update 5 with connectors reconfigured + IIS 7.5 on windows 7 (dev machine).
Comment by External U.
7466 | August 14, 2015 02:56:46 AM GMT
we plan on releasing the fix for this bug in the the upcoming CF11 and CF10 update.
Comment by Piyush K.
7467 | October 23, 2015 05:53:47 AM GMT
Hi Piyush, CGI.HTTP_URL returns [empty string] for me in IIS 10 w/ CF11 Update 7 (build 11,0,07,296330) and isapi_redirect.dll v. dated "Thursday, ?September ?10, ?2015, ??11:54:16 AM". It should return a value, including properly-encoded query string, right? Thanks!, -Aaron
Comment by External U.
7468 | December 03, 2015 06:32:32 PM GMT
In CF11 Update 7 (build 11,0,07,296330), I see the following in IIS 10: #1 For: http://localhost/index.cfm/foo'bar?fo'o=ba'r CGI.HTTP_URL result: /index.cfm/foo'bar?fo%27o=ba%27r #2 For: http://localhost/?fo'o=ba'r CGI.HTTP_URL result: [empty string] Filed CF-4097008 for #2. Thanks!, -Aaron
Comment by External U.
7469 | December 07, 2015 08:21:21 PM GMT