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.
Item11844: UpdateAttachmentsPlugin breaks TopicInteractionPlugin thumbnails
Symptoms
The
TopicInteractionPlugin attaching to the the topic thumbnail images like
igp_abab3b2631407b50836ccdfb42413d8b_filename.jpg.
When run the update rest handler for the
UpdateAttachmentsPlugin, like:
./rest /UpdateAttachmentsPlugin/update -topic Sandbox.TestTopic1 -user AdminUser
for the topic, what already contain attachments (with above thumbnails), the
UpdateAttachmentsPlugin adds those thumbnails as regular attachments, so getting two attachments:
- one attachment for the original, like
filename.jpg
- and another one for generated thumbnail, like
igp_abab3b2631407b50836ccdfb42413d8b_filename.jpg
OFC, the
TopicInteractionPlugin plugin generating another thumbnail, so get
igp_abab3b2631407b50836ccdfb42413d8b_igp_abab3b2631407b50836ccdfb42413d8b_filename.jpg , and so on...
The
UpdateAttachmentsPlugin should exclude the
igp_ (thumbnail) files when generating the update.
Enhancement idea
The
UpdateAttachmentsPlugin should remove the
*,v files at the update, when the main file does not exists, so probably those attachments are already removed. If this behavior is dangerous, maybe should be configurable...
--
JozefMojzis - 09 May 2012