-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[UNDERTOW-2580] Fix SameSite and cookie attributes #1761
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
Conversation
|
Ive put this on HOLD as it needs review and discussion. Also 2.3.x is target as its the one that I can test with reproducer. |
affd018 to
fd0a36e
Compare
| this.sameSite = sameSite; | ||
| return this; | ||
| } | ||
| // @Override |
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.
This and other instances should maybe be just turned into dummy methods with @Depracated?
Im fairly sure samesite might have worked if used on certain layer, its just integration was broken.
0c0c0e7 to
ae74ad3
Compare
|
I just briefly went over Servlet 6.1 and this stood out as something that might be needed here? d7b2f72#diff-28250838bdef188a6b0e5f836b1ac9fc386ca42f97873d9ecdd6b4b0d6aa3323L110 I will take a look tomorrow. |
|
d7b2f72#diff-88a5392afc0673ed5ca3b2fe41f74dd7e1dc8d38ba5a0762088f69f2d68bea3cR403 this will for sure, as this isnt mandated in draft. Im going to add Hold to this until Servlet stuff is merged. Still needs review. |
ae74ad3 to
33841d5
Compare
|
|
||
| public SessionCookieConfig setComment(final String comment) { | ||
| this.comment = comment; | ||
| setAttribute(COOKIE_COMMENT_ATTR, comment); |
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.
setAttribute(COOKIE_SAME_SITE_ATTR, String.valueOf(sameSite), false); - needs flag.
|
Closing, this PR is sort of obsolete and has flaw in setAttribute handling other than sameSite. Once Upstream is accepted it should be used as template for backport. |
Issue: https://issues.redhat.com/browse/UNDERTOW-2580