Question
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.
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)
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.
Environment
--
WolfgangAlper - 22 Feb 2005
Answer
Nice catch Wolfgang, and you'll get high karma from Crawford and friends for including a testcase

This should be a
BugReport though.
--
MattWilkie - 22 Feb 2005
Bug report has been created:
SaveHangUsingTOC
--
WolfgangAlper - 23 Feb 2005