Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTTP-BrowserDetect CPAN distribution.

Report information
The Basics
Id: 64081
Status: resolved
Worked: 30 min
Priority: 0/
Queue: HTTP-BrowserDetect

People
Owner: Nobody in particular
Requestors: Duncan.Garland [...] motortrak.com
Cc:
AdminCc:

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



CC: Eric Bonharme <Eric.Bonharme [...] motortrak.com>
Subject: HTTP::BrowserDetect
Date: Mon, 20 Dec 2010 16:00:18 +0000
To: "bug-HTTP-BrowserDetect [...] rt.cpan.org" <bug-HTTP-BrowserDetect [...] rt.cpan.org>
From: Duncan Garland <Duncan.Garland [...] motortrak.com>
Hi, I can't get this to load from CPAN. It throws a fatal error in one of the tests: t/01-detect.t ............. 1/? Failed to load YAML document from '/root/.cpan/build/HTTP-BrowserDetect-1.20/t/useragents.yaml' at t/01-detect.t line 12 perl -I lib -d t/01-detect.t DB<6> p YAML::Tiny->errstr YAML::Tiny found illegal characters in plain scalar: 'RealPlayer version 10, Mac OS X: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.9 (KHTML, like Gecko) RealPlayer/10.1.0.503' Going to install force and keep my fingers crossed. Regards Duncan Garland
On Mon Dec 20 11:02:10 2010, Duncan.Garland@motortrak.com wrote: Show quoted text
> Hi, > > I can't get this to load from CPAN. It throws a fatal error in one of > the tests: > > t/01-detect.t ............. 1/? Failed to load YAML document from > '/root/.cpan/build/HTTP-BrowserDetect-1.20/t/useragents.yaml' at t/01- > detect.t line 12 > > > perl -I lib -d t/01-detect.t > > DB<6> p YAML::Tiny->errstr > YAML::Tiny found illegal characters in plain scalar: 'RealPlayer > version 10, Mac OS X: Mozilla/5.0 (Macintosh; U; Intel Mac OS X > 10_6_2; en-us) AppleWebKit/531.9 (KHTML, like Gecko) > RealPlayer/10.1.0.503' > > Going to install force and keep my fingers crossed. > > Regards > > Duncan Garland
Hi Duncan, That's just an issue with the tests. The module should be fine in production as YAML::Tiny is never used outside of the test suite. I'll have a look at it. Maybe switch to a JSON config. Do you have the latest version of YAML::Tiny? Best, Olaf
Subject: RE: [rt.cpan.org #64081] HTTP::BrowserDetect
Date: Tue, 21 Dec 2010 11:54:31 +0000
To: "bug-HTTP-BrowserDetect [...] rt.cpan.org" <bug-HTTP-BrowserDetect [...] rt.cpan.org>
From: Duncan Garland <Duncan.Garland [...] motortrak.com>
Hi Olaf, Yes, I think so: Show quoted text
cpan> i YAML::Tiny
CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 20 Dec 2010 01:36:13 GMT Strange distribution name [YAML::Tiny] Module id = YAML::Tiny CPAN_USERID ADAMK (Adam Kennedy <adamk@cpan.org>) CPAN_VERSION 1.46 CPAN_FILE A/AD/ADAMK/YAML-Tiny-1.46.tar.gz MANPAGE YAML::Tiny - Read/Write YAML files with as little code as possible INST_FILE /usr/lib/perl5/site_perl/5.8.8/YAML/Tiny.pm INST_VERSION 1.46 I was able to load the file using the full YAML module. All the best. Duncan Show quoted text
-----Original Message----- From: Olaf Alders via RT [mailto:bug-HTTP-BrowserDetect@rt.cpan.org] Sent: 20 December 2010 17:24 To: Duncan Garland Subject: [rt.cpan.org #64081] HTTP::BrowserDetect <URL: https://rt.cpan.org/Ticket/Display.html?id=64081 > On Mon Dec 20 11:02:10 2010, Duncan.Garland@motortrak.com wrote:
> Hi, > > I can't get this to load from CPAN. It throws a fatal error in one of > the tests: > > t/01-detect.t ............. 1/? Failed to load YAML document from > '/root/.cpan/build/HTTP-BrowserDetect-1.20/t/useragents.yaml' at t/01- > detect.t line 12 > > > perl -I lib -d t/01-detect.t > > DB<6> p YAML::Tiny->errstr > YAML::Tiny found illegal characters in plain scalar: 'RealPlayer > version 10, Mac OS X: Mozilla/5.0 (Macintosh; U; Intel Mac OS X > 10_6_2; en-us) AppleWebKit/531.9 (KHTML, like Gecko) > RealPlayer/10.1.0.503' > > Going to install force and keep my fingers crossed. > > Regards > > Duncan Garland
Hi Duncan, That's just an issue with the tests. The module should be fine in production as YAML::Tiny is never used outside of the test suite. I'll have a look at it. Maybe switch to a JSON config. Do you have the latest version of YAML::Tiny? Best, Olaf
On Tue Dec 21 06:54:44 2010, Duncan.Garland@motortrak.com wrote: Show quoted text
> Hi Olaf, > > Yes, I think so: >
> cpan> i YAML::Tiny
> CPAN: Storable > loaded ok > Going to read /root/.cpan/Metadata > Database was > generated on Mon, 20 Dec 2010 01:36:13 GMT > Strange distribution name > [YAML::Tiny] > Module id = YAML::Tiny > CPAN_USERID ADAMK (Adam > Kennedy <adamk@cpan.org>) > CPAN_VERSION 1.46 > CPAN_FILE > A/AD/ADAMK/YAML-Tiny-1.46.tar.gz > MANPAGE YAML::Tiny - > Read/Write YAML files with as little code as possible > INST_FILE > /usr/lib/perl5/site_perl/5.8.8/YAML/Tiny.pm > INST_VERSION 1.46 > I was able to load the file using the full YAML module. > > All the > best. > > Duncan >
Hi Duncan, Thanks for this. It looks like it's a bug in YAML::Tiny. Turns out I was on 1.44 Once I upgraded, this test started failing for me as well. Best, Olaf
Hi Duncan, I've uploaded a new version to the CPAN that uses YAML rather than YAML::Tiny. I think that should solve it. Thanks very much for troubleshooting this for me. I'm short on time this week, but you've helped me get this fix out the door quickly. :) Have a great Christmas/Holiday season. Best, Olaf