Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Bundled HTTP::Cookies is missing clear()

Chiusa
#1,742 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #1748 di @fglock — integrata

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java, perl
Ambito
backend

Direzione di ricerca

Start with the bundled HTTP::Cookies 6.11 source and compare its cookie-jar API with the compatible clear() behavior identified in the issue. Run t/session_hooks.t and t/session_hooks_no_change_id.t under the JVM backend; done means the final HTTP::Cookies->clear() calls succeed and both tests complete. Note that open PR #1748 already targets this issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:cpan-port bug

Summary

PerlOnJava's bundled HTTP::Cookies 6.11 implementation does not provide clear(). Dancer2 session tests call this method to reset the cookie jar, so their change_session_id subtests abort even though preceding assertions pass.

Evidence

  • Dancer2 2.2.2, local CPAN run Dancer2-2.2.2 / 2026-10-10 / PerlOnJava 37189a6b.
  • JVM t/session_hooks.t and t/session_hooks_no_change_id.t both fail at their final HTTP::Cookies->clear() call with Can't locate object method "clear" via package "HTTP::Cookies".
  • Both tests pass under system Perl 5.42.2, which loads HTTP::Cookies 6.12.
  • The bundled source HTTP::Cookies 6.11 has no clear method.
  • PerlOnJava v5.44.1, commit 37189a6bde2064ba9bad4fefa78c22ee3bbf50ed; Java 24.0.2; macOS 26.6.2.

Acceptance criteria

  • Implement the compatible HTTP::Cookies->clear() behavior in the bundled module.
  • Both Dancer2 session hook tests complete successfully under the JVM backend.
Lingua principale
Perl
Stelle
64
Fork
7
Merge medio
5h 6m
PR unite (30g)
200

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fglock/PerlOnJava

Tutte le issue di fglock/PerlOnJava

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.