Author: sebb
Date: Tue Aug 11 15:30:32 2009
New Revision: 803160
URL: http://svn.apache.org/viewvc?rev=803160&view=rev
Log:
Bug 47445 - Using Proxy with https-spoofing secure cookies need to be unsecured
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=803160&r1=803159&r2=803160&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:30:32 2009
@@ -514,6 +514,10 @@
headerLines[i]=headerLines[i].replaceFirst(HTTPS_PREFIX,
"http://");
continue;
}
+ if (forcedHTTPS &&
HTTPConstants.HEADER_COOKIE.equalsIgnoreCase(parts[0]) ||
HTTPConstants.HEADER_SET_COOKIE.equalsIgnoreCase(parts[0]))
+ {
+ headerLines[i]=headerLines[i].replaceAll(" secure",
"").trim(); //in forced https cookies need to be unsecured...
+ }
}
}
if (fixContentLength && contentLengthIndex>=0){// Fix the content
length
Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=803160&r1=803159&r2=803160&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Tue Aug 11 15:30:32 2009
@@ -67,6 +67,7 @@
<h3>HTTP Samplers and Proxy</h3>
<ul>
+<li>Bug 47445 - Using Proxy with https-spoofing secure cookies need to be
unsecured</li>
</ul>
<h3>Other Samplers</h3>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]