-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CookieStore] Only set Cookie
s if they are not already set
#2033
[CookieStore] Only set Cookie
s if they are not already set
#2033
Conversation
This changes the behavior of the automatic usage of the `CookieStore` to avoid overwriting already-set `Cookie`s and, instead only sets them if they do not exist yet.
I'll take a look this weekend. |
Sadly this is a breaking change. |
I'm happy to if you have a suggestion? The current functionality is buggy given that it overrides explicitly provided cookies. |
Let me try something |
I'd say change this directly in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 4 out of 4 changed files in this pull request and generated no suggestions.
That's doable, but this breaking change is clearly necessary. |
Yup, I do feel this but as a library maintainer, I cannot. I am at fault, I should have made that as |
Fire this up so I can merge and cut a release. |
Is there any way to backport this to 2.12.x to maintain Java 8 support? We use AsyncHttpClient 2.12.x in the Apache Pulsar Admin client. Our challenge in Apache Pulsar is that the minimum Java requirement for clients is Java 8. Since AsyncHttpClient 3.0.x requires Java 11, we don't have a way to eliminate CVE-2024-53990 from our dependencies. While it's possible to set the Any suggestions and recommendations for solving our use case in Apache Pulsar would be much appreciated. |
@lhotari Sure, yes. I will push the emergency release for 2.12.x. |
Thank you, @hyperxpro. After the release, it would be great to have CVE-2024-53990 updated so that it would enlist the new release clear of the vulnerability so that vulnerability scanners would have the information too. |
Released 2.12.4; it will sync to Maven Central in some time :) @pickypg Can you do PR in the advisory database to exclude 2.12.4? |
Can do! |
missing 2.12.4 tag on GitHub? 👀 |
@hyperxpro Thanks for the fix, is there any chance this will be back ported to |
2.12.4 is out |
Added |
thanks! |
Updated the GitHub Advisory: GHSA-mfj5-cf8g-g2fv |
This changes the behavior of the automatic usage of the
CookieStore
to avoid overwriting already-setCookie
s and, instead only sets them if they do not exist yet.Closes #1964