[cgiapp] Help requested with CGI::App::Dispatch bugs

Michael Lackhoff lackhoff at zbmed.uni-koeln.de
Fri Aug 31 03:46:41 EDT 2012


On 31.08.2012 04:21 Mark Stosberg wrote:

> You can find the bug queue for it here:
> 
>     https://rt.cpan.org/Dist/Display.html?Name=CGI-Application-Dispatch

some months ago I wrote a message to this list with the problem of bug
#78552
Subject: Problems with exception handling in CAP::Dispatch
Date: 2012-05-15

I also have a patch that works for us:

--- Dispatch.pm.org     Thu Dec 15 09:48:32 2011
+++ Dispatch.pm Fri Jul  6 08:06:58 2012
@@ -406,8 +406,10 @@
     } catch {
         my $e = $_;
         unless ( ref $e ) {
-            local $@ = $e;
-            $e = Exception::Class->caught();
+            # local $@ = $e;
+            # $e = Exception::Class->caught();
+            # Fix (hopefully) broken error messages:
+            $e = Exception::Class::Base->new($e);
         }
         $output = $self->http_error($e, $args{error_document});
     };

> The related Github repo is here:
> 
>    https://github.com/markstos/CGI--Application--Dispatch

The above patch would fit around line 420 in the git master.

> And this mailing list is the place to ask if you have questions about 
> what an appropriate response to a bug might be, or other questions about 
> how to proceed.

I have some problems with rt so I hope it is o.k. to send it this way.

-Michael



More information about the cgiapp mailing list