Bug 51275 - Cookie Panel clearGui() sets incorrect default policy in Java 1.6
Summary: Cookie Panel clearGui() sets incorrect default policy in Java 1.6
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.4
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 09:12 UTC by Sebb
Modified: 2011-05-27 09:58 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2011-05-27 09:12:40 UTC
The Cookie Panel clearGui() method assumes that "compatibility" is the last policy entry. However, as this is derived from HashMap.keySet() the order is not well-defined.

The code should use the default policy name, as is done by the init() method, rather than the assumed index.
Comment 1 Sebb 2011-05-27 09:58:53 UTC
URL: http://svn.apache.org/viewvc?rev=1128210&view=rev
Log:
Bug 51275 - Cookie Panel clearGui() sets incorrect default policy in Java 1.6

Modified:
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java
   jakarta/jmeter/trunk/xdocs/changes.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:37:46 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2496