Tags:
create new tag
, view all tags

Bug: access oopses forget the originating web

If access is denied to a topic the oops will be directed to the Main web. This is due to a typo in TWiki::UI::isAccessPermitted(): $webName should be $web.

Test case

  1. Set ALLOWTOPICCHANGE to TWikiAdminGroup on Sandbox.SomeTopic
  2. logout wink
  3. try to edit SandBox.SomeTopic
  4. you will be redirected to .../oops/Main/SomeTopic?template=oopsaccesschange

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, SessionPlugin
Server OS: Debian/Sarge, kernel 2.6.11.7
Web server: apache 1.3.33-6
Perl version: 5.8.7-3
Client OS: Debian/Sarge, kernel 2.6.11.7
Web Browser: konqueror 3.4.1

-- MichaelDaum - 29 Jun 2005

Impact and Available Solutions

Follow up

 

Fix record

sub isAccessPermitted {
   my ( $web, $topic, $mode, $user ) = @_;

   return 1 if TWiki::Access::checkAccessPermission( $mode, $user, "",
                                                     $topic, $web );
   oops( $webName $web, $topic, "access$mode" );

   return 0;
}

Discussion

 
Topic revision: r1 - 2005-06-29 - MichaelDaum
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.