TWiki-4.3.1 causes errors to be logged to the webserver's error_log:
view: Use of uninitialized value in string eq at /srv/twiki/lib/TWiki/Users/TWikiUserMapping.pm line 471
The problem is
$this->{session}->{user}
does not exist on first invocation of
TWiki::Users:TWikiUserMapping::userExists()
To correct the problem, simply test if the index exists first:
# Do this to avoid a password manager lookup
- return 1 if $cUID eq $this->{session}->{user};
+ return 1 if exists $this->{session}->{user} and $cUID eq $this->{session}->{user};
--
TWiki:Main/WadeFitzpatrick
- 02 Jul 2009
Thanks Wade. This is a duplicate of
Item6375, fixed there.
--
TWiki:Main.PeterThoeny
- 2014-10-04