Tags:
create new tag
view all tags

Bug: writeLog has incorrect Web name

StoreDotPm uses the init web instead of the web name supplied to the save function. The webs are usually the same since TWiki gets initialized with the web of the to-be-saved topic. It fails if a Plugin calls TWiki::Func::saveTopicText() with a web other then the one used during initialization.

Test case

Example:

| 03 Nov 2004 - 00:26 | Main.PeterThoeny | save | TWiki.QuickCalendarPluginAppraisal | repRev 1.2 Main.PeterThoeny 2004/11/03 08:10:40 | 67.120.104.69 |
| 03 Nov 2004 - 00:26 | Main.PeterThoeny | save | TWiki.QuickPostPluginAppraisal | repRev 1.2 Main.PeterThoeny 2004/11/03 08:10:40 | 67.120.104.69 |

TWiki.QuickCalendarPluginAppraisal should be Plugins.QuickCalendarPluginAppraisal

Environment

TWiki version: TWikiBetaRelease2004x10x30
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, etc
Server OS: N/A
Web server: N/A
Perl version: N/A
Client OS: N/A
Web Browser: N/A

-- PeterThoeny - 04 Nov 2004

Follow up

In sub saveNew, fix variables from $TWiki::webName to $web. This is for .changes log and access log.

-- PeterThoeny - 04 Nov 2004

Fix record

FYI this does not apply to DEVELOP where it is already fixed (was never broken).

-- CrawfordCurrie - 04 Nov 2004

I take that back - it applies to .changes. Fixed on DEVELOP, version 1809.

-- CrawfordCurrie - 04 Nov 2004

Thanks Crawford for the .changes fix. However, writeLog is incorrect in DEVELOP:

TWiki::writeLog( "save", "$TWiki::webName.$topic", $extra );

There are three instances.

-- PeterThoeny - 04 Nov 2004

OK, in 1819

-- CrawfordCurrie - 05 Nov 2004

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2005-02-13 - SamHasler
 
  • 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.