Author: sebb Date: Tue Aug 11 15:34:49 2009 New Revision: 803165 URL: http://svn.apache.org/viewvc?rev=803165&view=rev Log: Bug 47442 - Missing replacement of https by http for certain conditions using https-spoofing
Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java jakarta/jmeter/trunk/xdocs/changes.xml Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java?rev=803165&r1=803164&r2=803165&view=diff ============================================================================== --- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java (original) +++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java Tue Aug 11 15:34:49 2009 @@ -511,7 +511,7 @@ final String HTTPS_PREFIX = "https://"; if (forcedHTTPS && HTTPConstants.HEADER_LOCATION.equalsIgnoreCase(parts[0]) && parts[1].substring(0, HTTPS_PREFIX.length()).equalsIgnoreCase(HTTPS_PREFIX)){ - headerLines[i]=headerLines[i].replaceFirst(HTTPS_PREFIX, "http://"); + headerLines[i]=headerLines[i].replaceFirst(parts[1].substring(0,HTTPS_PREFIX.length()), "http://"); continue; } if (forcedHTTPS && HTTPConstants.HEADER_COOKIE.equalsIgnoreCase(parts[0]) || HTTPConstants.HEADER_SET_COOKIE.equalsIgnoreCase(parts[0])) Modified: jakarta/jmeter/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=803165&r1=803164&r2=803165&view=diff ============================================================================== --- jakarta/jmeter/trunk/xdocs/changes.xml (original) +++ jakarta/jmeter/trunk/xdocs/changes.xml Tue Aug 11 15:34:49 2009 @@ -68,6 +68,7 @@ <h3>HTTP Samplers and Proxy</h3> <ul> <li>Bug 47445 - Using Proxy with https-spoofing secure cookies need to be unsecured</li> +<li>Bug 47442 - Missing replacement of https by http for certain conditions using https-spoofing</li> </ul> <h3>Other Samplers</h3> --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org