-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple identical Set-Cookie
response lines produced
#10797
Comments
@joakime We are apparently using Simple fix is to change all the calls.... but that will not avoid the mistake being made again in future. Thus I propose that we:
or maybe we should just make addCookie and replaceCookie do the same thing? |
Fix #10797 by make addCookie always replace existing SetCookie fields. Deprecated replaceCookie method.
Addressed #10797 by make cleanup of addCookie and renaming replaceCookie to putCookie. Ensured that Jetty code calls putCookie when appropriate.
Addressed #10797 by make cleanup of addCookie and renaming replaceCookie to putCookie. Ensured that Jetty code calls putCookie when appropriate.
Jetty version(s)
Jetty 12
Jetty Environment
All: ee10, ee9, ee8
Java version/vendor
(use: java -version)
OpenJDK 17
OS type/version
Linux / Ubuntu
Description
Multiple
Set-Cookie
response lines produced.How to reproduce?
When testing for the bug reported in issue #10794 it was noticed that the response produces multiple
Set-Cookie
lines.See below, testing with Jetty 12.0.2 with ee10-demos, using curl.
This produced 3 identical
Set-Cookie: visited=yes
lines.The text was updated successfully, but these errors were encountered: