Archive::Any fails to detect CPAN test archives on PerlOnJava

Ouverte
#2,037 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
java, perl
Domaine
backend

Piste de recherche

Start with the MIME detection and handler selection path that Archive::Any uses to pick an archive handler on PerlOnJava, since the bug is that a sample .tar.gz is reported as application/octet-stream. Reproduce by running t/10-simple.t from CPAN-Repository-0.010 on a current build, then compare with system Perl. Done when the test archive is detected as a supported format, the test passes on both JVM and interpreter backends, and a focused regression test covers the detection.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

area:cpan-port area:io blocked:ownership bug

Summary

The CPAN::Repository 0.010 test suite fails on PerlOnJava when it adds sample distribution archives. Archive::Any detects a sample .tar.gz as application/octet-stream, reports that no handler is available, and returns an undefined archive object. Dist::Data then dies while calling extract on that value.

Evidence

  • CPAN distribution: CPAN-Repository-0.010 (OALDERS)
  • CPAN run: 20261111-090841-71684
  • Failing test: t/10-simple.t; 3 subtests pass before the test program exits with status 255.
  • PerlOnJava log diagnostic: No handler available for type 'application/octet-stream' from Archive::Any, followed by Can't call method "extract" on an undefined value from Dist::Data.
  • System Perl 5.42.2 on macOS passes the distribution suite: 4 test programs, 16 tests; t/10-simple.t passes.
  • PerlOnJava’s recorded run is the JVM backend. The interpreter backend was not separately checked.

The run installed pure-Perl dependencies including Archive::Any 0.0946, Dist::Data 0.007, and Dist::Metadata 0.927. The failing test uses bundled sample distribution archives and does not require a live CPAN service.

Expected behavior

PerlOnJava should identify the supported archive format and allow Archive::Any to extract the sample distribution, matching system Perl so CPAN::Repository can update its repository metadata.

Acceptance

  • Reproduce the focused test failure on the recorded run or a current PerlOnJava build.
  • Identify and fix why archive MIME detection or handler selection yields application/octet-stream for the test archive.
  • Add focused regression coverage and verify the test on system Perl and both PerlOnJava backends.
Langage dominant
Perl
Étoiles
67
Forks
8
Merge moyen
5 h 12 min
PR mergées (30 j)
131

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de fglock/PerlOnJava

Toutes les issues de fglock/PerlOnJava

Issues similaires

Plus d'issues Perl

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.