• 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.

Item4454: delRev of a topic previously edited by a sudo authenticated user or other Base mapped user fails

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal No Action Required   minor  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Mixing BaseUserMapping and normal TWikiUserMapping creates problem with a feature like delRev

Try and imagine that you have elevated yourself to admin using the sudo login OR you have edited a topic as guest.

Someone else who is in the admin group wants to delRev the just edited topic then you are met with


Error saving topic 
During save of Myweb.SearchTest an error was found by the version control system. Please notify your TWiki administrator. 
=Can't use string ("KennethLavrsen") as a HASH ref while "strict refs" in use at /usr/local/apache2/twiki/lib/TWiki/Store.pm line 1174. at /usr/local/apache2/twiki/lib/TWiki/Store.pm line 1174 TWiki::Store::__ANON__() called at /usr/local/apache2/twiki/lib/CPAN/lib//Error.pm line 379 eval {...} called at /usr/local/apache2/twiki/lib/CPAN/lib//Error.pm line 371 Error::subs::try('CODE(0xa1dedfc)', 'HASH(0xa537758)') called at /usr/local/apache2/twiki/lib/TWiki/Store.pm line 1177 TWiki::Store::delRev('TWiki::Store=HASH(0xa146768)', 'KennethLavrsen', 'Myweb', 'SearchTest') called at /usr/local/apache2/twiki/lib/TWiki/UI/Save.pm line 473 TWiki::UI::Save::__ANON__() called at /usr/local/apache2/twiki/lib/CPAN/lib//Error.pm line 379 eval {...} called at /usr/local/apache2/twiki/lib/CPAN/lib//Error.pm line 371 Error::subs::try('CODE(0xa6b5cc8)', 'HASH(0xa6ec22c)') called at /usr/local/apache2/twiki/lib/TWiki/UI/Save.pm line 481 TWiki::UI::Save::save('TWiki=HASH(0x9dd1b3c)') called at /usr/local/apache2/twiki/lib/TWiki/UI.pm line 159 TWiki::UI::__ANON__() called at /usr/local/apache2/twiki/lib/CPAN/lib//Error.pm line 379 eval {...} called at /usr/local/apache2/twiki/lib/CPAN/lib//Error.pm line 371 Error::subs::try('CODE(0x9dd1d88)', 'HASH(0xa6e6ad8)') called at /usr/local/apache2/twiki/lib/TWiki/UI.pm line 197 TWiki::UI::run('CODE(0x9f4d68c)', 'save', 1) called = 

Go back in your browser and save your changes locally. 

The way I ran into this is by having done a sudo login. Then edited some topics and later tried with delRev logged in normally as myself who is also in the admin group.

Note that the guest case is not a problem if you have the TWikiGuest user defined in the .htpasswd file and have a normal user topic for him because then the TWikiUserMapping is used instead of the Base mapping.

So in practical use this is only an issue when you do not have a TWikiGuest defined as a real user.

But I am concerned about this strange mix of authentications and this geeky sudo login I must admit.

-- TWiki:Main/KennethLavrsen - 13 Aug 2007

This was duplicated in Item4629 by the original reporter, and fixed there. Closing no action.


Summary delRev of a topic previously edited by a sudo authenticated user or other Base mapped user fails
ReportedBy TWiki:Main.KennethLavrsen
Codebase ~twiki4
SVN Range TWiki-4.1.2, Fri, 10 Aug 2007, build 14536
AppliesTo Engine

Priority Normal
CurrentState No Action Required


TargetRelease minor

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2007-09-15 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback