Skip Menu |

This queue is for tickets about the Maypole CPAN distribution.

Report information
The Basics
Id: 29981
Status: resolved
Priority: 0/
Queue: Maypole

People
Owner: Nobody in particular
Requestors: ben [...] decadent.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 2.12
  • 2.121
Fixed in: 2.13



Subject: CGI handler doesn't produce any output in case of a fatal error
Date: Sun, 14 Oct 2007 17:34:19 +0100
To: bug-Maypole [...] rt.cpan.org
From: Ben Hutchings <ben [...] decadent.org.uk>
The CGI handler doesn't produce any output in case of a fatal error. Suggested fix: --- maypole.orig/lib/CGI/Maypole.pm +++ maypole/lib/CGI/Maypole.pm @@ -57,7 +57,17 @@ sub run { my $self = shift; - return $self->handler; + my $status = $self->handler; + if ($status != OK) { + print <<EOT; +Status: 500 Maypole application error +Content-Type: text/html + +<title>Maypole application error</h1> +<h1>Maypole application error</h1> +EOT + } + return $status; } =head1 Implementation -- END -- Ben. -- Ben Hutchings Lowery's Law: If it jams, force it. If it breaks, it needed replacing anyway.
Download signature.asc
application/pgp-signature 189b

Message body not shown because it is not plain text.

resolved in 2.13 and SVN revision 583