Item8174: Infinite loop in combination with ActionTrackerPlugin

pencil
Priority: Normal
Current State: New
Released In:
Target Release:
Applies To: Extension
Component: XpTrackerPlugin
Branches:
Reported By: Foswiki:Main.PhilippHoppen
Waiting For:
Last Change By: PhilippHoppen
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
 
Topic revision: r2 - 30 Jun 2009, PhilippHoppen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy