atom feed1 message in org.apache.jakarta.jmeter-devJMeter 2.3.1 bug in Cookie Manager "c...
FromSent OnAttachments
sebbDec 14, 2007 12:13 pm 
Subject:JMeter 2.3.1 bug in Cookie Manager "clear each iteration"
From:sebb (seb@gmail.com)
Date:Dec 14, 2007 12:13:23 pm
List:org.apache.jakarta.jmeter-dev

The Cookie Manager has an option to "Clear cookies each iteration".

Unfortunately,when the code was updated in 2.3.1 to allow pre-defined cookies to be preserved, a bug was introduced.

The bug caused cookie handling to break - all threads end up sharing the same cookies. [If "clear each iteration" is not selected, then cookies are handled OK]

==

The code has been fixed, and will be in the next release. In the meantime, if you need the feature, some workrounds are:

- use JMeter 2.3

-- or --

- add a BeanShell Pre-Processor to the FIRST sampler with the script:

sampler.getCookieManager().clear();

-- or --

- add a User Parameters Pre-Processor to the FIRST sampler:

Name: DUMMY User_1: ${__jexl(sampler.getCookieManager().clear())}

[The name DUMMY could be any variable that you are not currently using]

Apologies for any inconvenience.

S///