Tags:
create new tag
, view all tags

Bug: Save hangs when using TOC forth and back between two topics

When including a TOC from another Topic, and then include back the parent topiclist, Twiki hangs on save. Viewauth takes most of the cpu time.

The apache log shows the following error:

[Tue Feb 22 22:01:41 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3160.
[Tue Feb 22 22:01:41 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3160.
[Tue Feb 22 22:01:54 2005] view: Scalar value @_[0] better written as $_[0] at ../lib/TWiki/Plugins/XpTrackerPlugin.pm line 176.
[Tue Feb 22 22:01:58 2005] viewauth: Scalar value @_[0] better written as $_[0] at ../lib/TWiki/Plugins/XpTrackerPlugin.pm line 176.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleCommonTags" at ../lib/TWiki.pm line 2454.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3161.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleCommonTags" at ../lib/TWiki.pm line 2454.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3161.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleCommonTags" at ../lib/TWiki.pm line 2454.
[Tue Feb 22 22:02:34 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3160.

Note: This Bug was also asked in support: SaveHangUsingTOC

Test case

See testcase in SaveHangUsingTOC.

Note: In the testcase, i disabled the last TOC in SaveHangUsingTOCHeadOne %TOC{"SaveHangUsingTOC"}% to avoid the hangup. (which can be reproduced on twiki.org)

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian Sarge / Testing
Web server: Apache 1.3.33
Perl version: 5.8.4
Client OS: Windows, Linux
Web Browser: Mozilla, Firefox

-- WolfgangAlper - 23 Feb 2005

Impact and Available Solutions

Follow up

 

Fix record

Discussion

Topic revision: r1 - 2005-02-23 - WolfgangAlper
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.