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):
- 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)
- 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
--
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:
- Momentarily disable TOPIC PREFS or
- 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