apache / apache/jmeter

Loop Controller causes "Existing CookieManager HTTP Cookie Manager superseded by HTTP Cookie Manager"

Open
#6,235 0 comments 4 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

When using a request which sets a Cookie inside a Loop no Warnings should be written to log.

If the same requests are executed outside the Loop no Warning is written in log - see Screenshot:
![image](https://github.com/apache/jmeter/assets/9194415/727d607d-315f-4174-af65-8eb313c47ba1)

### Actual behavior

When using a request which sets a Cookie inside a Loop this Warning is written to log
`WARN o.a.j.p.h.s.HTTPSamplerBase: Existing CookieManager HTTP Cookie Manager superseded by HTTP Cookie Manager`
![image](https://github.com/apache/jmeter/assets/9194415/8cf42440-8461-4072-b4bd-7f5335f1cad4)

### Steps to reproduce the problem

Run `CookieManagerLoopWarning.jmx` (inside attached zip file)
compoare with running `CookieManagerNoWarning.jmx`

[CookieManagerWarning.zip](https://github.com/apache/jmeter/files/14199522/CookieManagerWarning.zip)

### JMeter Version

5.6.3

### Java Version

openjdk 11.0.21

### OS Version

Windows 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.