• 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.

Bug: WebExist uses WebPreferences as opposed to WebHome to determine the validity of a web

The webExists ObjectMethod in Store.pm uses the existence, in the subdirectories of the data directory, of the webpreference topic (as configured in $TWiki::cfg{WebPrefsTopicName}) to determine whether that subdirectory is in fact a valid web. I'm not sure if this is a problem in itself (whether the WebPreferences page should be essential to a web) but all the in code documentation I've seen indicates that the web validity test is based on the existence of the WebHome topic in the subdirectories of 'data'.

Test case

1) manually create a subdirectory in data called TestWeb

2) Create a file in this directory entitled WebHome.txt

3) check the resolved value of the WEBLIST variable (maybe put it in a page or something -_-) and notice that TestWeb is not listed.

4) Rename this WebHome.txt to WebPreferences.txt

5) refresh the WEBLIST page and see TestWeb listed

-- SethTownsend - 20 Jun 2006


This is a problem with the documentation, not the code! The reason WebPreferences is used is that a web that contains WebPreferences but not WebHome can function happily as a web, but a web with WebHome but no WebPreferences cause all sorts of problems with preferences and protections.

CC

There was only one place where it was stated in the code docs, and that was in Store. Corrected.

CC

ItemTemplate
Summary WebExist uses WebPreferences as opposed to WebHome to determine the validity of a web
ReportedBy TWiki:Main.SethTownsend
Codebase

SVN Range Sun, 18 Jun 2006 build 10637
AppliesTo Engine
Component Documentation
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:13395
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r7 - 2008-01-22 - KennethLavrsen
 
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