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

Michael McMahon michaelm at openjdk.org
Tue Jun 24 09:11:22 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 19 additional commits since the last revision:

 - Merge branch 'master' into cookie-8351983
 - Merge branch 'master' into cookie-8351983
 - apidoc update
 - doc update from CSR review
 - Merge branch 'master' into cookie-8351983
 - Revert "impl update"
   
   This reverts commit b22113118ce68a5ba710be9072b208e9a36ae533.
 - impl update
 - test update
 - test and impl update
 - Merge branch 'master' into cookie-8351983
 - ... and 9 more: https://git.openjdk.org/jdk/compare/0c9e0f74...6eba52a9

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25636/files
  - new: https://git.openjdk.org/jdk/pull/25636/files/3b71e4ff..6eba52a9

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

  Stats: 3213 lines in 215 files changed: 1274 ins; 569 del; 1370 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