Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-FindDependencies CPAN distribution.

Report information
The Basics
Id: 65001
Status: resolved
Priority: 0/
Queue: CPAN-FindDependencies

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

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



Subject: retrieval of 02packages sometimes is corrupted
When using LWP::Simple::get, the LWP::Simple (rightly) decodes the content based on the content-type header. As of the filing of this bug, http://www.cpan.org/modules/02packages.details.txt.gz has a content type header of "text/plain; charset=UTF-8". LWP::Simple tries to decode the binary gzip data as utf-8 and then stuff starts breaking. It might be better to use getstore (with a temp file) or use LWP::UserAgent where you can ensure that the file is treated as an opaque binary. I don't know if you'll want to fix this since really, everything is working correctly except for the cpan.org server (as well as other random mirrors) but I have no idea where the RT queue for those are :-) As a workaround in my code, I'm passing in the 02packages option to the finddeps function.
Thankyou for your report and analysis. I will fix this (cos the chances of all the mirrors getting fixed are approximately 0), and have also passed it on to some of the perl toolchain hackers.
I'm hitting this problem pretty bad. If you don't already have a fix I'll be making one shortly.
Fixed in 2.4, sorry for the delay