Item1456: Access viewfile without web/file results in oops

Priority: Normal
Current State: Closed
Released In: 1.0.5
Target Release: patch
Applies To: Engine
Component: viewfile
Reported By: GeorgeClark
Waiting For:
Last Change By: KennethLavrsen
Accessing the viewfile script without any web/topic supplied results in an internal error:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

Undefined subroutine &Foswiki::OopsException called

Undefined subroutine &Foswiki::OopsException called at /var/www/htdocs/lib/Foswiki/UI/ line 463.
 at /var/www/htdocs/lib/Foswiki/UI/ line 463
        Foswiki::UI::View::viewfile('Foswiki=HASH(0x8ebf63c)') called at /var/www/htdocs/lib/Foswiki/ line 181
        Foswiki::UI::__ANON__() called at /var/www/htdocs/lib/CPAN/lib// line 379
        eval {...} called at /var/www/htdocs/lib/CPAN/lib// line 371
        Error::subs::try('CODE(0x90457b8)', 'HASH(0x9acc72c)') called at /var/www/htdocs/lib/Foswiki/ line 249
        Foswiki::UI::execute('Foswiki::Request=HASH(0x8edaad8)', 'CODE(0x92b9a8c)', 'viewfile', 1) called at /var/www/htdocs/lib/Foswiki/ line 120
        Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x8edaad8)') called at /var/www/htdocs/lib/Foswiki/Engine/ line 26
        Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x915ec3c)') called

Occurs on Foswiki 1.0.4 and also recreated on Generates an attachment not found page Causes the above oops.
There was a missing throw. Fixed in trunk and Releaae01x00

-- CrawfordCurrie - 17 Apr 2009

ItemTemplate edit

Summary Access viewfile without web/file results in oops
ReportedBy GeorgeClark
Codebase 1.0.4, 1.0.0
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component viewfile
Priority Normal
CurrentState Closed
Checkins distro:58fb2dd80a1b distro:b917d181ce08
TargetRelease patch
ReleasedIn 1.0.5
Topic revision: r7 - 25 Apr 2009, KennethLavrsen - This page was cached on 16 Sep 2021 - 13:15.

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