Tags:
archive_me1Add my vote for this tag create new tag
, view all tags

Bug: Broken link for OK button on oopsaccesschange page

On oopsaccesschange page, OK button always refers to Main web.

Test case

Try to edit a page (not on Main web), for which you have no change access, check the OK button's url in the error message. (Link of the OK button will refer to Main.ChangeAccessDeniedOkButton).

FIX: in UI.pm, sub isAccessPermitted - $web instead of oops($webName...)

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Gentoo linux
Web server: Apache 2
Perl version: 5.8
Client OS: Windows XP SP2
Web Browser: IE6, Firefox PR1.0

-- AndrasSzell - 07 Nov 2004

Follow up

Not sure if the above is a fix; if so I would appreciate more info on a fix for the UI.pm syntax if there is where the bug lies. The sub isAccessPermitted reads:

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

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

   return 0;
}

Is the fix indeed to replace oops with $web? Sorry to be pedantic.

-- SueLocke - 17 Dec 2004

Fix record

This is related to / already fixed in OopsRenameAccessDeniedHasMainWeb.

-- PeterThoeny - 17 Dec 2004

Thanks Peter. Problem now solved.

-- SueLocke - 17 Dec 2004

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2004-12-17 - SueLocke
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.