RFR: 8351983: HttpCookie Parser Incorrectly Handles Cookies with Expires Attribute [v5]
Michael McMahon
michaelm at openjdk.org
Fri Jun 13 14:52:29 UTC 2025
On Thu, 12 Jun 2025 18:20:58 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:
> @Michael-Mc-Mahon, instead of making an exception for `max-age` and `expires`, and removing them from `assignors`, can't we convert the type of `assignors` from `Map` to `List` and add `max-age` & `expires` entries at the end?
Just converting from Map to List wouldn't be enough. The problem is that both attribute types need to be handled together. You could change the attribute name recognition to some kind of pattern match to recognise either of them. Then you need to know which of them was set and what their values were.
Maybe, I could at least use the assignor pattern to recognise the two attributes and limit the special code to just actioning the values. I'll take a look at that now.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25636#discussion_r2145264788
More information about the net-dev
mailing list