Bug 64145 - CookieManager cleanup in postprocessor behaves strangely
Summary: CookieManager cleanup in postprocessor behaves strangely
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.2
Hardware: All All
: P2 normal (vote)
Target Milestone: JMETER_6.0.0
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-15 13:19 UTC by Felix Schumacher
Modified: 2020-02-15 13:21 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Schumacher 2020-02-15 13:19:22 UTC
Mail from Philippe on the dev mailing list:

Hello,
I was looking into clearing cookies at some step of my scenario.

So under an HTTP Request I added a JSR PostProcessor , I called:

   - sampler.getCookieManager().clear()

But although it clears cookie it seems it breaks further iterations,
Cookies are not added
The workaround is to do this:

   - sampler.getCookieManager().testIterationStart(null);


Don't have time to investigate more deeply for now, just reporting not to
forget it.
Comment 1 Philippe Mouawad 2020-02-15 13:21:48 UTC
Linking to what would be a nice enhancement:
https://bz.apache.org/bugzilla/show_bug.cgi?id=53976