Open batrachian opened 11 months ago
@HugoHasenbein do you have any suggestions of what to look at to diagnose this further? Is there other info to provide that might assist an investigation?
I suspect it is an issue of the character encoding of the local file system. The filename is provided in the email with an arbitrary character encoding and the plugin fails to adapt the filename encoding to the local file system encoding. For that, it might fail if the local system does not support that encoding. Redmine has already addressed this issue by having a means to select the encoding of the local file system in the "File System Repository Setting". This is a rough guess, though.
Am 20.10.2023 um 08:50 schrieb batrachian @.***>:
@HugoHasenbein https://github.com/HugoHasenbein do you have any suggestions of what to look at to diagnose this further? Is there other info to provide that might assist an investigation?
— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/92#issuecomment-1772181790, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRBK3NHDWIKQLPYUHPDYAINM3AVCNFSM6AAAAAA54GHJCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGE4DCNZZGA. You are receiving this because you were mentioned.
email preview is working for .eml files attached to issues when the email does not include attachments.
When the email includes attachments, an error is displayed instead of the email body. e.g. (partial traceback):
The
more_previews
directory does not exist in/usr/local/www/redmine/tmp/
(other directories in
tmp
- e.g.cache
,thumbnails
- have recently modified files in them, sotmp
is writeable by redmine.If the directory
/usr/local/www/redmine/tmp/more_previews/attachments/593/preview.html/
is manually created, the error message becomes:The error still occurs even if the directory
preview.html
is made world-writeable.I tried making the change suggested in https://github.com/HugoHasenbein/redmine_more_previews/issues/87 but this did not help.
Does anyone have any suggestions of a likely cause?