You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2003/04/09 13:02:34 UTC
DO NOT REPLY [Bug 18851] New: -
Wrong end condition in CookieManager?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18851
Wrong end condition in CookieManager?
Summary: Wrong end condition in CookieManager?
Product: JMeter
Version: 1.8.1
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: Other
Component: HTTP
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: jometzner@gmx.net
CC: jometzner@gmx.net
I've found this in org.apache.jmeter.protocol.http.control.CookieManager
-----------------------------------------------------------
public void removeCookieNamed(String name)
{
Vector removeIndices = new Vector();
for (int i = getCookies().size() - 1; i > 0; i--) {
Cookie cookie = (Cookie) getCookies().get(i);
[...]
-----------------------------------------------------------
What is happening if only one Cookie Object is in the list? IMHO this Cookie
will never get the chance of beeing removed.
I've found this because I needed to remove Cookies from the CookieManager with
every new test iteration to test the servlet engine.
I guess the patch will be real simple :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org