Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 42219
Status: resolved
Priority: 0/
Queue: CPAN-Mini

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

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



Subject: Sanity check the index files
If you try to run minicpan from behind a hijacked/airport connection, the index files seem to be fetched "ok" but of course don't contain any records. Instead, it contains something like <HTML> <HEAD> <TITLE>Cisto Systems Inc. Web Authentication Redirect</TITLE> etc etc As a result, minicpan seems to decide the current expected list of modules to zync is zero, and proceeds to immediately "clean" (delete) the entire minicpan checkout. So we should probably add a sanity check to the fetching.
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #42219] Sanity check the index files
Date: Thu, 8 Jan 2009 08:18:20 -0500
To: Adam Kennedy via RT <bug-CPAN-Mini [...] rt.cpan.org>
From: Ricardo SIGNES <rjbs [...] cpan.org>
* Adam Kennedy via RT <bug-CPAN-Mini@rt.cpan.org> [2009-01-07T19:38:32] Show quoted text
> If you try to run minicpan from behind a hijacked/airport connection, > the index files seem to be fetched "ok" but of course don't contain any > records. Instead, it contains something like > ... > As a result, minicpan seems to decide the current expected list of > modules to zync is zero, and proceeds to immediately "clean" (delete) > the entire minicpan checkout.
Good catch, good idea. I'll try to get around to this before too long, but as always, patches welcome. -- rjbs
fixed in git -- rjbs