r10 - 13 Feb 2005 - 16:08:42 - SamHaslerYou are here: TWiki >  Codev Web > OopsRenameAccessDeniedHasMainWeb
Tags:
, create new tag

Bug: Oops Message for Rename Access Denied has Always Main Web

Incorrect web is shown in oops message if a user tries to rename a topic with no permissions

This is a small refactor bug.

Test case

  • User without permission tries to rename a topic in any web other then Main web
  • Opps message is shown with Main web instead of current web
  • Link to Email generates 'Main.TopicName' subject instead of 'Actualweb.TopicName'

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: N/A
Server OS: N/A
Web server: N/A
Perl version: N/A
Client OS: N/A
Web Browser: N/A

-- PeterThoeny - 08 Oct 2004

Follow up

Fix record

--- bu3/UI.pm   2004-09-18 22:37:14.000000000 -0700
+++ UI.pm       2004-10-08 13:40:03.000000000 -0700
@@ -140,11 +140,11 @@
 sub isAccessPermitted {
    my ( $web, $topic, $mode, $user ) = @_;

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

    return 0;
 }

 =pod twiki

-- PeterThoeny - 08 Oct 2004

This is now in SVN

-- PeterThoeny - 09 Oct 2004

Moved CodingStandardsDiscussions to where they belong

-- PeterThoeny - 12 Oct 2004

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r10 < r9 < r8 < r7 < r6 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo