You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2007/12/14 21:13:46 UTC

JMeter 2.3.1 bug in Cookie Manager "clear each iteration"

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///

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org