Tags:
create new tag
view all tags

Question

I upgrade to the new twiki (manually) and have a problem where the WIKINAME is sometimes being reported as TWikiGuest and not as my wikiname.

When I click the 'login' link on the WebLeftBar (I applied the patch MissingTWikiGuestLeftBarInTWikiRelease01Sep2004) in any web it then returns to the currect page except that now it reports 'Create personal sidebar '. No, it doesn't ask me to login (since I already logged in previously)

So, clicking the 'login' link seems to remind Twiki about my credentials but then it promptly forgets it when I navigate to any other link in the Twiki and it all starts over again.

To try and isolate the bug I added %WIKINAME% to the top of the WebLeftBar so that I could see when it changed. the preview cgi always reports who I am correctly. When on view it reports me wrongly until I click the login in link. I had a quick look at both those scripts, they are basically identical ,pulling the remote_user from the CGI $query object. No luck there.

I suppose I could have messed something up since I did a manual install, though I followed the TWikiUpgradeGuide closely.

Is there any reason why it would lose the remote_user sometimes and not others?

I have some screen shots that I'll try to attach

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: linux
Web server: apache 1.31
Perl version: 5.8.0
Client OS: linux
Web Browser: firefox 0.8, Netscape 7.0, IE 6.0

-- KevinBaker - 09 Sep 2004

  • Editing the WebLeftBar to add WIKINAME:
    Editing the <a class=WebLeftBar to add WIKINAME" width="744" height="721" />

  • Previewing the edit. Notice that it has my Wikiname correct.:
    Previewing the edit. Notice that it has my Wikiname correct.

  • After the save. Notice that now the WIKINAME is TWikiGuest. where have I gone?:
    After the save. Notice that now the WIKINAME is <a class=TWikiGuest. where have I gone?" width="744" height="723" />

  • After clicking 'login' on the WebLeftBar. now I'm found again.:
    After clicking 'login' on the <a class=WebLeftBar. now I'm found again." width="743" height="720" />

  • But clicking on any link again just makes it forget it again. Back to being a guest:
    But clicking on any link again just makes it forget it again. Back to being a guest

Answer

Did you make sure that the doRememberRemoteUser variable in Twiki.cfg is on? I had a similar problem a while back and that is what worked for me.

-- TrevisMartin - 09 Sep 2004

I did set the doRememberRemoteUser to 1 and it did not cure the problem for me. I have had to remove the personal toolbar because it was so confusing when it did not work. I think this feature needs some more looking at.

-- KennethLavrsen - 10 Sep 2004

I activated the doRememberRemoteUser variable and it seems to have fixed it. Thanks. It makes me curious though why/how Twiki loses the REMOTE_USER sometimes and not other times. Is it a known browser/server problem? Are other web applications affected by this?

-- KevinBaker - 08 Oct 2004

If your site requires authentication for edit and other modification tasks and doesn't require it for view, then this is the behavior you'd expect. The web server will set the REMOTE_USER variable if authentication is required for a script. It may not set it if authentication is not required.

-- ClaussStrauch - 08 Oct 2004

As a sidenote, you can stumble into this behavior as well, if you have been using SessionPlugin - and then add SpeedyCGI to your site. More information on this in SessionPluginDev and ViewauthAndSessionPluginFailsWithSpeedyCGI.

-- SteffenPoulsen - 08 Oct 2004

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatext edit-left-bar-01 r1 manage 25.4 K 2004-09-09 - 16:39 UnknownUser Editing the WebLeftBar to add WIKINAME
GIFgif edit-left-bar-01.gif r1 manage 25.4 K 2004-09-09 - 16:41 UnknownUser Editing the WebLeftBar to add WIKINAME
GIFgif login-left-bar-04.gif r1 manage 21.3 K 2004-09-09 - 16:47 UnknownUser After clicking 'login' on the WebLeftBar. now I'm found again.
GIFgif lost-auth-again-left-bar-05.gif r1 manage 28.3 K 2004-09-09 - 16:49 UnknownUser But clicking on any link again just makes it forget it again. Back to being a guest
GIFgif preview-left-bar-02.gif r1 manage 22.2 K 2004-09-09 - 16:45 UnknownUser Previewing the edit. Notice that it has my Wikiname correct.
GIFgif save-left-bar-03.gif r1 manage 21.0 K 2004-09-09 - 16:46 UnknownUser After the save. Notice that now the WIKINAME is TWikiGuest. where have I gone?
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2004-12-04 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.