Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: rob [...] hoelz.ro
Cc:
AdminCc:

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



Subject: Clicking on distribution link in search results results in 500 error when 00whois.xml exists in minicpan
If you run minicpan_webserver on a minicpan that mirrors 00whois.xml, clicking on a distribution link causes an HTTP 500 error. I've attached a patch to include a rudimentary 00whois.xml for testing, along with a fix for the issue. Steps to reproduce: 1) Create a minicpanrc with also_mirror: authors/00whois.xml 2) Run minicpan with that minicpanrc 3) Go grab some lunch or something 4) Run minicpan_webserver 5) Search for Plack or something that will yield results 6) Click the first distribution link -Rob
Subject: fix-00whois.xml.patch
diff -Naur CPAN-Mini-Webserver-0.51/lib/CPAN/Mini/Webserver/Templates.pm CPAN-Mini-Webserver-0.51-rhoelz/lib/CPAN/Mini/Webserver/Templates.pm --- CPAN-Mini-Webserver-0.51/lib/CPAN/Mini/Webserver/Templates.pm 2011-01-30 09:09:07.000000000 -0600 +++ CPAN-Mini-Webserver-0.51-rhoelz/lib/CPAN/Mini/Webserver/Templates.pm 2011-05-05 13:44:20.954488077 -0500 @@ -62,7 +62,7 @@ my ( $self, $author_desc, $arguments ) = @_; my $author = $author_desc; - $author = $arguments->{parse_cpan_authors}->author( $author_desc ) if !$author_desc->isa( 'Parse::CPAN::Authors::Author' ); + $author = $arguments->{parse_cpan_authors}->author( $author_desc ) if !ref($author_desc); my $name = my $pause_id = $author_desc; $name = $author->name if $author; diff -Naur CPAN-Mini-Webserver-0.51/t/mini/authors/00whois.xml CPAN-Mini-Webserver-0.51-rhoelz/t/mini/authors/00whois.xml --- CPAN-Mini-Webserver-0.51/t/mini/authors/00whois.xml 1969-12-31 18:00:00.000000000 -0600 +++ CPAN-Mini-Webserver-0.51-rhoelz/t/mini/authors/00whois.xml 2011-05-05 13:46:00.033951317 -0500 @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<cpan-whois xmlns='http://www.cpan.org/xmlns/whois' + last-generated='Tue May 3 16:19:02 2011 GMT' + generated-by='Id'> + <cpanid> + <id>ANDK</id> + <type>author</type> + <fullname>Andreas CpanTest K</fullname> + <asciiname>Andreas CpanTest K</asciiname> + <email>andreas.koenig.7os6vvqr@franz.ak.mind.de</email> + <has_cpandir>1</has_cpandir> + </cpanid> +</cpan-whois>
Subject: [rt.cpan.org #67973] seems to be fixed
Date: Wed, 21 Sep 2011 23:51:46 +0200
To: bug-regexp-common [...] rt.cpan.org
From: intrigeri <intrigeri [...] boum.org>
Hi, I cannot reproduce this bug in 0.57, while I was affected by it in 0.51. Bye, -- intrigeri <intrigeri@boum.org> | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc | So what?
You're right, this was fixed in 0.52, but i forgot about this ticket. Thanks for the reminder. :)