Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Bobby Lawrence / Bobby Lawrence (Bobby Lawrence)
Created: 02/06/2015
Components: Net Protocols, HTTP
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Win 2008 Web Server
Vote Count: 1
Problem Description: Our CF server must go through a proxy to get access to machines outside its local subnet. However, we need it to be able to access its siblings in the subnet directly without going through the proxy. We've added the standard JVM startup arguments for specifying a proxy to http/https requests (http.proxyHost, http.proxyPort, http.nonProxyHosts) and the cfhttp call is respecting the host and port, but ignorning the nonProxyHosts. So even if the host matches the http.nonProxyHosts, the request goes through the proxy.
Steps to Reproduce: Add the following JVM arguments to CF startup with values filled in:
-Dhttp.proxyHost=<host>
-Dhttp.proxyPort=<port>
-Dhttp.nonProxyHosts="<your server name>"
Restart the CF service. Then create a page with this content (I'm running on Windows):
<cfparam name="mode" default="make_request">
<cfif mode eq "make_request">
<cfhttp url="https://#cgi.server_name##cgi.script_name#?mode=debugging" throwOnError="no">
</cfhttp>
<cfoutput>#cfhttp.Filecontent#</cfoutput>
<cfabort>
</cfif>
<cfoutput>
<cfset client_ip = cgi.remote_host>
<cfset client_dns="">
<cfexecute name="nslookup" arguments="#client_ip#" variable="client_dns" timeout="5">
ip: #client_ip#...#client_dns#
<br>
server: #cgi.server_name#
</cfoutput>
Actual Result: The actual result is that the cgi.remote_host variable will contain the IP address of the proxy
Expected Result: The cgi.remote_host should contain the IP address of the current machine
Any Workarounds: None
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3935795
External Customer Info:
External Company:
External Customer Name: Bobby
External Customer Email:
External Test Config: My Hardware and Environment details: CF 11 running on Windows 2008 server
Attachments:
Comments: