• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Since upgrading from the December beta to RC1, username variables are no longer expanded in some cases.

Example 1:

  • Go to http://www.vsfe.org/twiki
  • Click on a link in the text, e.g. "Knowledge base"
  • You get a login screen OOPS, which no longer expands the current login name: "%WIKINAME% has no permission to VIEW Knowledge.WebHome." (without the nop's, of course)

Example 2:

--LvZ


Do you have the following in TWikiPreferences?
   * Shortcuts to user information
      * Set WIKINAME = %USERINFO{format="$wikiname"}%
      * Set USERNAME = %USERINFO{format="$username"}%
      * Set WIKIUSERNAME = %USERINFO{format="$wikiusername"}%
I believe it was r8510.

-- AJA

mmm, thats a good point - if we were to deprecate these variables, but set their defaults in code that might be safer.

I also want to add $groups to list the groups the user is in - so i'll have a play, and then update here


SD
I like the $groups idea!
I've occasionally wanted to extact the members of a group and see if the current user is in that group, but this can equally well do things the other way round. Good idea. Adds value.
-- AJA


Hmm, tried adding the above definitions to TWikiPreferences, but that just gives me: "-- $wikiusername - 29 Jan 2006"

%WIKINAME% does seem to work fine now, though.

-- LvZ

ah, sorry - I changed the way userINFo works just after rc1 was cooked - for rc1 oyu'll need to set those 3 variables as they are in the TWikiPreferences topic in the zipfile (this will change for the final release to what Anton mentioned above)

   * Shortcuts to user information
      * Set WIKINAME = %USERINFO{format="$wikiname"}%
      * Set USERNAME = %USERINFO{format="$login"}%
      * Set WIKIUSERNAME = %USERINFO{format="$web.$wikiname"}%

-- SD

It is much safer to expand the USERNAME, WIKINAME, WIKIUSERNAME in the code. To avoid more upgrade issues we should not use the preferences setting for this.

-- PTh

svn:8613

-- SD

ItemTemplate
Summary WIKI(USER)NAME does not get expanded
ReportedBy TWiki:Main.LevienVanZon
Codebase

SVN Range Fri, 27 Jan 2006 build 8562
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 8613
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 2006-01-31 - SvenDowideit
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback