Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

HTTP::Cookies extraction drops Expires and SameSite attributes

オープン
#1,743 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@fglock がすでに取り組んでいます。

2026年10月11日 から。

  • #1748 @fglock による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java, perl

調査の方向性

Start in the bundled HTTP::Cookies source at extract_cookies() and trace how set_cookie() stores parsed attributes; compare the behavior with HTTP::Cookies 6.12. Run t/session_config.t under the JVM backend, then verify that scan() preserves a future Expires value and SameSite=Strict along with the existing domain and path behavior. Linked pull request #1748 is already open, so check its scope before taking this on.

索引モデルが issue の本文から書いたものです。

説明

area:cpan-port bug

Summary

The bundled HTTP::Cookies::extract_cookies() drops cookie attributes needed by Dancer2 sessions. It does not retain the Expires attribute or extension attributes such as SameSite, so scan() returns no expiration and an empty attributes hash.

Evidence

  • Distribution: Dancer2 2.2.2; local CPAN run Dancer2-2.2.2 / 2026-10-10 / PerlOnJava 37189a6b.
  • JVM t/session_config.t fails the checks that cookie expiration is in the future and SameSite is Strict; cookie domain and path checks pass.
  • System Perl 5.42.2 with HTTP::Cookies 6.12 passes the focused test.
  • In the bundled HTTP::Cookies 6.11 source, extract_cookies() passes max-age to set_cookie() but ignores expires and does not preserve the parsed attributes in the cookie's rest hash.
  • PerlOnJava v5.44.1, commit 37189a6bde2064ba9bad4fefa78c22ee3bbf50ed; Java 24.0.2; macOS 26.6.2.

Acceptance criteria

  • Extracted cookies retain Expires as a future expiry and preserve extension attributes such as SameSite through scan().
  • The Dancer2 session configuration test passes under the JVM backend.
主要言語
Perl
スター
64
フォーク
7
平均マージ
5時間 8分
マージ済み PR(30日)
193

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fglock/PerlOnJava のほかの issue

fglock/PerlOnJava の issue をすべて見る

似ている issue

Perl の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。