-
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
Review HTTP Cookie parsing #10219
Labels
Comments
Also, IPv6 domains should be supported, at least |
sbordet
added a commit
that referenced
this issue
Sep 1, 2023
* Added HttpCookie.parse() to properly parse Set-Cookie values. * Removed hacky implementation in HttpClient. * Removed unused methods in HttpCookieUtils. Signed-off-by: Simone Bordet <[email protected]>
sbordet
added a commit
that referenced
this issue
Sep 14, 2023
* Added SetCookieParser interface and RFC6265SetCookieParser implementation to properly parse Set-Cookie values. * Removed hacky implementation in HttpClient. * Removed unused methods in HttpCookieUtils. * Using SetCookieParser for the implementation of newPushBuilder in ee9,ee10. * Reworked HttpCookieStore.Default implementation. * Implemented properly cookie path resolution. * Using URI.getRawPath() to resolve cookie paths. * Removed secure vs. non-secure scheme distinction when storing cookies. * Refactored common code in HttpCookieStore.Default to avoid duplications. Signed-off-by: Simone Bordet <[email protected]>
Fixed by #10464. |
github-project-automation
bot
moved this from 🏗 In progress
to ✅ Done
in Jetty 12.0.2 FROZEN
Sep 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jetty version(s)
12
Description
HttpClient
has a hacky implementation of parsingSet-Cookie
to createo.e.j.http.HttpCookie
instances.HttpCookieUtils
is onjetty-server
but has a method to parseSet-Cookie
(which would be needed by clients), also hacky and current unused.CometD has the same need of parsing
Set-Cookie
headers, and also has a hacky implementation.A proper
Set-Cookie
parser should be implemented, and be part ofjetty-http
so that it can be used by clients (and possibly servers if needed).The text was updated successfully, but these errors were encountered: