NOTE: 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.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item8611: A COMMENT gets applied again when a save is invoked from an afterSaveHandler
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Urgent |
Closed |
Engine |
CommentPlugin |
|
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.
--
CrawfordCurrie - 24 Feb 2010