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

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

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, perl
領域
backend

調査の方向性

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.

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

説明

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.
主要言語
Perl
スター
67
フォーク
8
平均マージ
5時間 12分
マージ済み PR(30日)
131

環境構築

はじめの一歩

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

fglock/PerlOnJava のほかの issue

fglock/PerlOnJava の issue をすべて見る

似ている issue

Perl の issue をもっと見る

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

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