Tags:
create new tag
, view all tags

Bug: Login as non-guest shown as Main.guest

Logging on as RichardDonkin or as other non-guest users, using TWikiAlphaRelease of 13 Sep 2003, I get the userid of the revision shown as Main.guest. This happened after upgrading from a much older alpha release (mid-summer).

Reverting to the TWiki.pm and TWiki/Plugins.pm from twiki-20030806alpha fixed this, so it's not my config or environment.

I think the work on the plugin initialisation is likely to have changed this - can't see anything else done recently that would affect this.

Test page is http://donkin.org/bin/view/Test/TestTopic5 and testenv is http://donkin.org/bin/testenv (currently reverted to 8 Aug 03 alpha as mentioned above).

Any ideas on this?

Test case

Create or edit any page, logging on as something other than TWikiGuest.

Environment

TWiki version: TWikiAlphaRelease 14 Sep 2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian Woody (Dreamhost)
Web server: Apache 1.3
Perl version: 5.6.1
Client OS: any
Web Browser: any

-- RichardDonkin - 19 Sep 2003

Follow up

Fix record

Spending about 30 minutes for debugging i made this patch:

*** /fsys/disk0/storage/cvs-src/twiki/twiki/lib/TWiki/Plugins.pm        Thu Sep 11 13:06:00 2003
--- lib/TWiki/Plugins.pm        Tue Sep 23 16:13:42 2003
*************** sub initialize1
*** 238,244 ****
          }
      }
      unless( $user ) {
!         $user = &TWiki::initializeRemoteUser( $_[0] );
      }
      return $user;
  }
--- 238,244 ----
          }
      }
      unless( $user ) {
!         $user = &TWiki::initializeRemoteUser( $theLoginName );
      }
      return $user;
  }

-- StanislavSvirid - 23 Sep 2003

Thanks for the patch! I'll try this out - a bit busy right now, unfortunately.

-- RichardDonkin - 23 Sep 2003

Thanks Richard for spotting this and Stanislav for the patch. Don't know how I missed this in testing (I guess because I was focusing on using the SessionPlugin). Note commited to CVS.

-- JohnTalintyre - 23 Sep 2003

Removed CairoRelease from ScheduledFor field since this applied temporarily to TWikiAlphaRelease 14 Sep 2003 (not to the previous production release)

-- PeterThoeny - 09 May 2004

Topic revision: r6 - 09 May 2004 - 06:39:02 - PeterThoeny
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback