Item8174: Infinite loop in combination with ActionTrackerPlugin
Priority: Normal
Current State: New
Released In:
Target Release:
There is an infinite loop when using
XpTrackerPlugin in combination with
ActionTrackerPlugin (Rev. 3907). It can be reproduced when creating a xpTracker-project. when
commonTagsHandler
is called,
XpTrackerPlugin checks for the "xpsave" parameter and then calls the
Func::saveTopicText
function. This function in turn triggers the
beforeSaveHandler
in
ActionTrackerPlugin, which releases a call to
Func::expandCommonVariables
, and then it begins all over again.
As a workaround, i commented out the following line in
ActionTrackerPlugins's Option.pm:
$options{$ky} = Foswiki::Func::expandCommonVariables( $options{$ky}, $topic, $web );
--
PhilippHoppen - 05 Jun 2009
a bettwer solution is to drop the request parameter "xpsave" in
XpTrackerPlugin.pm:
sub commonTagsHandler
{
### my ( $text, $topic, $web ) = @_; # do not uncomment, use $_[0], $_[1]... instead
# search for create new page link
if( $query->param( 'xpsave' ) ) {
$query->delete('xpsave');
xpSavePage($web);
# return; # in case browser does not redirect
}
--
PhilippHoppen - 30 Jun 2009