Closed
Description
Describe the bug
When a header is injected directy in a Endpoint class, this header is not clean between two request.
Exemple:
@Path("/hello")
public class GreetingResource {
@HeaderParam("filter")
String filter;
@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
return "Header: %s".formatted(filter);
}
}
On first call without the header filter
, the value of filter
is null
.
On second call with the header filter
with the value 'my filter', the value of filter
is 'my filter'.
On third call without the header filter
, the value of filter
is 'my filter'.
FI: I have the same issue with the 3.15.3
Expected behavior
On third call without the header filter
, the value should be null
.
Actual behavior
The third call keep the value of the second one
How to Reproduce?
Small reproducer. Use the /hello
with a header header
once with a value, and without a value.
Output of uname -a
or ver
No response
Output of java -version
openjdk version "17.0.12" 2024-07-16
Quarkus version or git rev
3.8.6
Build tool (ie. output of mvnw --version
or gradlew --version
)
apache-maven-3.9.0
Additional information
No response
Activity