If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org
to view this page for some minimal testing.
for docu changes for 1.2 and 2.0.
Item8611: A COMMENT gets applied again when a save is invoked from an afterSaveHandler
COMMENT uses the beforeSaveHandler to re-read the topic and insert the comment. It gets the comment from the URL params. But if we have the scenario where another plugin has an afterSaveHandler which saves a different
topic, then the beforeSaveHandler in the CommentPlugin
will end up inserting the comment again.
The workaround is for the calling plugin to ensure that any URL params are removed from the request before saving any further topics. The fix is for CommentPlugin
to remove those same params after it has processed them once.
- 24 Feb 2010