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

Item4308: getListOfWebs() and webExists() disagree

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent Closed   minor  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

That's why you get a
ERROR mailnotifier cannot find web TestWeb
error message by the MailerContrib. But it surely has other more sever consequences.

How can this be resolved wrt performance and correctness?

-- TWiki:Main/MichaelDaum - 27 Jun 2007

If you can provide a less abstract testcase, maybe I can comment.....

-- TWiki:Main.CrawfordCurrie - 29 Jun 2007

This shows up if there are some webs left over when running the unit tests. But it should also be reproducible like this:

mkdir .../data/SomeWeb
cd bin
./mailnotify

The issue is that webExists() checks for WebPreferences but getListOfWebs() does not (for performance reasons?). It once did, as far as I remember. What's the best fix?

-- TWiki:Main.MichaelDaum - 03 Jul 2007

Added a unit test. Confirmed.

-- TWiki:Main.CrawfordCurrie - 14 Jul 2007

In the end I just filtered the listed webs using an existence check.

CC

ItemTemplate
Summary getListOfWebs() and webExists() disagree
ReportedBy TWiki:Main.MichaelDaum
Codebase

SVN Range TWiki-4.1.2, Mon, 25 Jun 2007, build 14278
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:14403 TWikirev:14507
TargetRelease minor
ReleasedIn

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