Tags:
create new tag
view all tags

Bug: Using %WIKINAME% doesn't seem to work

  • Installed production dec 2001 on red hat & apache 1.3.

  • Using .htaccess authentication which works great. I can create users and log in and have limited editting to those with accounts, etc. That all works fine. However the WIKINAME variable doesn't ever seem to expand properly. (I think I saw it work.. once, sometime during the install process.. but now it never seems to.)

  • The signature when editting a page is always correct. And if I attempt to log in using a bad password, I can't. etc. twiki clearly knows who I am, it just isn't saying so.

  • WIKINAME variable always expands to TWikiGuest (on every page). The reason I really know this is because I wanted a "Welcome, User!" banner at the top of each page, so I made a mod to view.tmpl (see below). This always expands to Welcome, TWikiGuest!

  • I don't have cookies or any fancy twiki options turned on for ssl or anything, just basic authentication.

By the way this is a really cool product.

Test case

  • Made the following mod (the Welcome line) to the default templates/view.tmpl (just for the below I'm using curly { instead of pointy ones, in my code it's all proper)

{body bgcolor="#ffffff"}
{p align=center}Welcome, TWikiGuest !{/p}
#Pagetop

  • After logging in (even after editting a page and having signature assigned to my BumpyUserName correctly), this text always says Welcome, TWikiGuest !

  • The (default) Main page also says near the top "Welcome, TWikiGuest (blah blah)"

Environment

TWiki version: dec 2001
TWiki plugins: default
Server OS: linux red hat
Web server: apache 1.3
Perl version:  
Client OS: Win95
Web Browser: MSIE 5

-- TWikiGuest - 03 Jan 2002

Fix record

This is actually spec, not a bug. Your view script is not authenticated, so TWiki thinks that all users are guests while looking at a topic. When you edit and preview.

Workarounds:

  • Authenticate also the view script: This has the implication that users need to log in also when only looking at content which mightnot be desirable.

  • Track users by IP address: Set the $doRememberRemoteUser flag in TWiki.cfg to remember the users once logged in. This works most of the time but has some drawbacks. See the installation docs in the TWiki web.

-- PeterThoeny - 05 Jan 2002

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-01-01 - SvenDowideit
 
  • 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.