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

Đang mở
#2,037 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, perl
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Perl
Star
67
Fork
8
Merge trung bình
5 giờ 12 phút
Pull request đã merge (30 ngày)
131

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fglock/PerlOnJava

Tất cả issue của fglock/PerlOnJava

Issue tương tự

Thêm issue về Perl

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.