Skip Menu |
 

This queue is for tickets about the MIME-Types CPAN distribution.

Report information
The Basics
Id: 82100
Status: resolved
Priority: 0/
Queue: MIME-Types

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

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



Subject: Hash Order based failures on 5.17.x
There appears to be some code somewhere in MIME::Types with an implicit dependency on hash ordering in Perl, which, will randomly break on >5.17 due to hashes becomming truely randomly ordered.

perl -MMIME::Types -E 'say MIME::Types->new( complete_only => 1 )->mimeTypeOf(q{pl})';


>=5.17 , that will randomly switch between text/x-perl and application/x-perl

On 2012-12-19 18:25:45, KENTNL wrote:
Show quoted text
> There appears to be some code somewhere in MIME::Types with an
> implicit
> dependency on hash ordering in Perl, which, will randomly break on
> >5.17 due to
> hashes becomming truely randomly ordered.
>
> perl -MMIME::Types -E 'say MIME::Types->new( complete_only => 1 )-
> >mimeTypeOf(q{pl})';
>
>
>
> >=5.17 , that will randomly switch between text/x-perl and
> application/x-perl

Huh. This appears to be "By Design" . Thats not very useful :/
Subject: Re: [rt.cpan.org #82100] Hash Order based failures on 5.17.x
Date: Wed, 19 Dec 2012 09:48:44 +0100
To: Kent Fredric via RT <bug-MIME-Types [...] rt.cpan.org>
From: Mark Overmeer <secretaris [...] nluug.nl>
* Kent Fredric via RT (bug-MIME-Types@rt.cpan.org) [121219 08:42]: Show quoted text
> Queue: MIME-Types > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=82100 > > > On 2012-12-19 18:25:45, KENTNL wrote:
> > There appears to be some code somewhere in MIME::Types with an > > implicit > > dependency on hash ordering in Perl, which, will randomly break on
> > >5.17 due to
> > hashes becomming truely randomly ordered. > > > > perl -MMIME::Types -E 'say MIME::Types->new( complete_only => 1 )-
> > >mimeTypeOf(q{pl})';
> > > > > >
> > >=5.17 , that will randomly switch between text/x-perl and
> > application/x-perl
> > Huh. This appears to be "By Design" . Thats not very useful :/
It was not my intention to have perl mentioned twice. I think we should remove the "text/x-perl" version. -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
Subject: Re: [rt.cpan.org #82100] Hash Order based failures on 5.17.x
Date: Fri, 21 Dec 2012 11:44:22 +0100
To: Kent Fredric via RT <bug-MIME-Types [...] rt.cpan.org>
From: Mark Overmeer <solutions [...] overmeer.net>
Download (untitled) / with headers
text/plain 1.1k
* Kent Fredric via RT (bug-MIME-Types@rt.cpan.org) [121219 08:42]: Show quoted text
> Queue: MIME-Types > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=82100 > > > On 2012-12-19 18:25:45, KENTNL wrote:
> > >=5.17 , that will randomly switch between text/x-perl and
> > application/x-perl
Show quoted text
> Huh. This appears to be "By Design" . Thats not very useful :/
On my Linux box: grep perl $(locate mime.types) Results in: /data/share/cups/mime/mime.types:application/x-perl pl /etc/apache2/mime.types:application/x-perl pl pm al perl /etc/htdig/mime.types:application/x-perl pl pm al perl /etc/mime.types:application/x-perl pl pm al perl /usr/etc/mime.types:application/x-perl pl pm Release 1.37, later today, will removed text/x-perl I hope it does not break things for people... but "text/" is a mistake. Not everyone agrees: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=229148 -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
Resolved half a year ago


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.