You are here: Foswiki>Tasks Web>Item13257 (05 Jul 2015, GeorgeClark)Edit Attach

Item13257: Document other handlers NOT to use expandCommonVariables

pencil
Priority: Low
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: Documentation, FoswikiFunc
Branches: master
Reported By: JohnKnutson
Waiting For:
Last Change By: GeorgeClark
The documentation for Foswiki::Func::expandCommonVariables() says not to use it in an initPlugin handler, but it will cause problems in other handlers as well. Specifically I've found that if you try and use it in beforeCommonTagsHandler, you end up in an infinite loop. I'd bet this also applies to many of the other handlers as well, so long as the plugin is doing any macro processing other than using expand...

-- JohnKnutson - 11 Feb 2015

Thanks for the feedback. Updated docs will be in Foswiki 1.2

-- GeorgeClark - 19 Feb 2015
 

ItemTemplate edit

Summary Document other handlers NOT to use expandCommonVariables
ReportedBy JohnKnutson
Codebase 1.1.9
SVN Range
AppliesTo Engine
Component Documentation, FoswikiFunc
Priority Low
CurrentState Closed
WaitingFor
Checkins distro:ae6b6046df19
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
trunkCheckins
masterCheckins distro:ae6b6046df19
ItemBranchCheckins
Release01x01Checkins
Topic revision: r4 - 05 Jul 2015, GeorgeClark
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