Item2158: AccessControlException caught as Error::Simple

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: MichaelDaum
Waiting For:
Last Change By: KennethLavrsen
... 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

ItemTemplate edit

Summary AccessControlException caught as Error::Simple
ReportedBy MichaelDaum
Codebase 1.0.7
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r4 - 17 Nov 2010, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy