Item2158: AccessControlException caught as Error::Simple
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
... which then is rendered as an text/plain message in the browser and a 500 internal server error.
By accident I found out that replacing
use CGI::Carp qw(fatalsToBrowser);
$SIG{__DIE__} = \&CGI::Carp::confess;
with
require Carp;
$SIG{__DIE__} = \&Carp::confess;
cures the problem. For some reason a throw AccessControlException is caught as an Error::Simple later in UI.pm ... for no apparent reason.
It might be related to a strange version of
CPAN:CGI::Carp on the hosting service that I used. Now someone else on #irc had the same problem...so it is not me ... this time.
--
MichaelDaum - 25 Sep 2009
There are no reliable instructions for how to reproduce this, nor is there any indication where this change has to be made, and the code has changed quite a bit since it was reported, so marking as feedback required.
--
CrawfordCurrie - 26 Jun 2010
No follow up and the bug was reported in sep 2009 and as Crawford says the code has changed a lot since
No action required it seems
--
KennethLavrsen - 17 Nov 2010