apache / apache/jmeter

HTTP Cache Manager only sends If-None-Match header

Open
#3,323 2 comments 0 reactions 0 assignees View on GitHub
enhancement os: Linux P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**Matt Parker** ([Bug 56163](https://bz.apache.org/bugzilla//show_bug.cgi?id=56163&redirect=false)):
When using the HTTP Cache Manager, a PUT sampler should automatically include the "If-Match" header, rather than the "If-None-Match" header, because of the semantics of updates (http://tools.ietf.org/html/rfc2616#section-14.24)

Created attachment [put-sends-if-none-match.jmx](https://apache.github.io/jmeter-bugzilla-attachments/63/56163/31336/put-sends-if-none-match.jmx): test plan to show that HTTP Cache Manager inserts If-None-Match instead of If-Match for PUT sampler
put-sends-if-none-match.jmx

````xml




false
false



host
www.mnot.net
=


path
/cache_docs/
=







continue

false
1

1
1
1392832764000
1392832764000
false





true
false






${host}





${path}
GET
true
false
true
false
false





200

Assertion.response_code
false
8







${host}





${path}
GET
true
false
true
false
false





304

Assertion.response_code
false
8







${host}





${path}
PUT
true
false
true
false
false





false

saveConfig


true
true
true
true
true
true
true
true
false
true
true
true
true
true
false
true
true
false
false
2
true






````

OS: Linux

Contributor guide

Open the contributing guide

Research direction

Start with the HTTP Cache Manager and PUT sampler behavior, then run the attached put-sends-if-none-match.jmx test plan to reproduce the header issue. Locate the existing cache-manager tests or implementation and verify that PUT requests send If-Match rather than If-None-Match.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.