Tags:
create new tag
view all tags

Question

In the WEBVariableTest topic I have tried setting the WEB variable to "Apache/Tomcat" (one of our local users did just that, when refactoring his topic to using local variables - unaware of the special meaning/reserved nature of the WEB variable).

Now I'd like to edit the page, to alter/remove the variable.

I get the edit page OK, but when I try to preview or save, I get an error: "The "Apache/Tomcat" web does not exist".

Am I missing the obvious or is this topic now updateable only through direct file system manipulation?

Two scenarios related to use of the WEB variable (just for curiousity):

  1. Setting the WEB variable to a web that exists (and has write permision)
    • Editing and saving the topic twice, will save a new copy of the topic in the WEB-web. Sideeffect: Any previous topic with the same name in the WEB-web are replaced with the new topic without any warning (previous topic in WEB is gone)
  2. Setting the WEB variable to a protected web
    • Editing and saving twice will display an error-message that you do not have permission to write in the Main web (not the name of the protected web)

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: twiki.org
Web server: twiki.org
Perl version: twiki.org
Client OS: twiki.org
Web Browser: twiki.org
Categories: Hosting, Topic revisions, Missing functionality

-- SteffenPoulsen - 24 Feb 2005

Answer

hmm, interesting, what about OverrideUsername ?

-- MattWilkie - 24 Feb 2005

It might be benificial to give the issue some thought. In last nights IRC session maphew suggested two workarounds:

  1. Momentarily disable TOPIC PREFS or
  2. Add WEB to FINALPREFERENCES pref in TWikiPreferences

This lead to considering which variables really should be added to FINALPREFERENCES pr. default. maphew mentioned these as candidates:

  • http_host, mainweb, puburl, remote_*, script*, twikiweb, username, wikiname, wikiprefstopic, wikitoolname, wikiusername, wikiuserstopic

I think I'd agree that's the candidates - wouldn't it be the right thing to do to add these to FINALPREFERENCES?

I'll promote this topic to a bugreport if anyone agrees.

-- SteffenPoulsen - 25 Feb 2005

This sounds like a bug. System variables should not be overloadable by preferences variables.

-- PeterThoeny - 06 Apr 2005

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