• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6732: Administrator can't delete tag if Main web is renamed to User web

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TagMePlugin Normal Closed   patch 5.1.0, 5.0.2

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Reported with proposed fix by TWiki:Main.JeremyBertenshaw in TWiki:Support.SID-01080

Jeremy's fix is simply hard-coding the Main web name to User, so will not work in a default installation.

This fix is universal:

--- TagMePlugin.pm   (revision 21104)
+++ TagMePlugin.pm   (working copy)
@@ -35,8 +35,8 @@
   $topicsRegex $action $style $label $header $footer $button
 );
 
-$VERSION    = '1.7';
-$RELEASE    = '2010-06-12';
+$VERSION    = '1.8';
+$RELEASE    = '2011-05-25';
 $pluginName = 'TagMePlugin';    # Name of this Plugin
 
 $initialized = 0;
@@ -1446,7 +1446,7 @@
     my @groupsAndUsers = split( ",", $allowModifyPrefNames );
     foreach (@groupsAndUsers) {
         my $name = $_;
-        $name =~ s/(Main\.|\%MAINWEB\%\.)//go;
+        $name =~ s/.*\.//go; # Remove web prefix from Main.WikiName
         return 1 if ( $name eq TWiki::Func::getWikiName(undef) ); # user is listed
         return 1 if _isGroupMember( $name );
     }

-- TWiki:Main/PeterThoeny - 2011-05-25

This is now in SVN trunk and 5.1 branch, and posted on twiki.org.

-- TWiki:Main.PeterThoeny - 2011-05-26

ItemTemplate
Summary Administrator can't delete tag if Main web is renamed to User web
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 5.0.2
SVN Range TWiki-5.1.0-trunk, Sun, 22 May 2011, build 21317
AppliesTo Extension
Component TagMePlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:21340 TWikirev:21341 TWikirev:21348 TWikirev:21349 TWikirev:21350 TWikirev:21351
TargetRelease patch
ReleasedIn 5.1.0, 5.0.2
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2011-08-22 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback