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
Attention
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.
CC