Item1456: Access viewfile without web/file results in oops

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.5
Target Release: patch
Applies To: Engine
Component: viewfile
Branches:
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/View.pm line 463.
 at /var/www/htdocs/lib/Foswiki/UI/View.pm line 463
        Foswiki::UI::View::viewfile('Foswiki=HASH(0x8ebf63c)') called at /var/www/htdocs/lib/Foswiki/UI.pm line 181
        Foswiki::UI::__ANON__() called at /var/www/htdocs/lib/CPAN/lib//Error.pm line 379
        eval {...} called at /var/www/htdocs/lib/CPAN/lib//Error.pm line 371
        Error::subs::try('CODE(0x90457b8)', 'HASH(0x9acc72c)') called at /var/www/htdocs/lib/Foswiki/UI.pm line 249
        Foswiki::UI::execute('Foswiki::Request=HASH(0x8edaad8)', 'CODE(0x92b9a8c)', 'viewfile', 1) called at /var/www/htdocs/lib/Foswiki/UI.pm line 120
        Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x8edaad8)') called at /var/www/htdocs/lib/Foswiki/Engine/CGI.pm line 26
        Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x915ec3c)') called

Occurs on Foswiki 1.0.4 and also recreated on foswiki.org

http://mysite.org/bin/viewfile Generates an attachment not found page
http://mysite.org/bin/viewfile/ 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
WaitingFor
Checkins distro:58fb2dd80a1b distro:b917d181ce08
TargetRelease patch
ReleasedIn 1.0.5
Topic revision: r7 - 25 Apr 2009, 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