RFR: 8351983: HttpCookie Parser Incorrectly Handles Cookies with Expires Attribute [v5]

Michael McMahon michaelm at openjdk.org
Thu Jun 12 12:48:31 UTC 2025


> Hi,
> 
> This is a fix to j.n.HttpCookie (which has a doc/spec change). So, I'm targeting it to 26.
> We currently do not obey the rule in RFC 6265 that says if both Max-Age and Expires attributes
> are present in a cookie, the Max-Age should take precedence.
> 
> Thanks
> Michael

Michael McMahon has updated the pull request incrementally with one additional commit since the last revision:

  test update

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/25636/files
  - new: https://git.openjdk.org/jdk/pull/25636/files/e44ccf94..9a495d7f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25636&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25636&range=03-04

  Stats: 13 lines in 1 file changed: 12 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/25636.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25636/head:pull/25636

PR: https://git.openjdk.org/jdk/pull/25636


More information about the net-dev mailing list