NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item1456: Access viewfile without web/file results in oops

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine viewfile  
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 Foswikirev:3469 Foswikirev:3470
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 CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads