Skip Menu |

This queue is for tickets about the Archive-Any-Plugin-Rar CPAN distribution.

Report information
The Basics
Id: 83392
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Archive-Any-Plugin-Rar

People
Owner: MRGRIPH [...] cpan.org
Requestors: KSURI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.01
Fixed in: (no value)



Subject: can_handle() should also return application/x-rar-compressed
Archive::Any allows users to explicitly set archive type instead of using File::MMagic to guess it. It uses MIME::Types to find the full MIME type name by the suffix user has provided. For the 'rar' suffix MIME::Types returns 'application/x-rar-compressed', which is not listed in your module. That leads to this: $ perl -MArchive::Any -E'say for Archive::Any->new("some.file", "rar")->files' No handler available for type 'application/x-rar-compressed' at /home/ksurent/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Archive/Any.pm line 179, <DATA> line 1000. Can't call method "files" on an undefined value at -e line 1, <DATA> line 1000.
Fixed. Вск Фев 17 11:39:28 2013, KSURI писал: Show quoted text
> Archive::Any allows users to explicitly set archive type instead of > using File::MMagic to guess it. > It uses MIME::Types to find the full MIME type name by the suffix user > has provided. For the 'rar' > suffix MIME::Types returns 'application/x-rar-compressed', which is > not listed in your module. > That leads to this: > > $ perl -MArchive::Any -E'say for Archive::Any->new("some.file", > "rar")->files' > No handler available for type 'application/x-rar-compressed' at > /home/ksurent/perl5/perlbrew/perls/perl- > 5.14.2/lib/site_perl/5.14.2/Archive/Any.pm line > 179, <DATA> line 1000. > Can't call method "files" on an undefined value at -e line 1, <DATA> > line 1000.