Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

HTTP::Cookies extraction drops Expires and SameSite attributes

Cerrado
#1,743 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Ya se ha fusionado un pull request relacionado.

  • #1748 de @fglock — fusionado

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
java, perl

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Perl
Estrellas
64
Forks
7
Merge medio
5 h 6 min
PR fusionados (30 d)
200

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de fglock/PerlOnJava

Todos los issues de fglock/PerlOnJava

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.