Item11844: UpdateAttachmentsPlugin auto-attaches image thumbnails
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
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
Improved the default
{AttachFilter}
setting.
Jozef, you might need to alter it on your install to exclude
igp_.*
files.
--
MichaelDaum - 07 May 2014