Support

Akeeba Ticket System

#36016 Fetch Email Plug In - attachment with UTF8 characters

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Ticket System version
n/a

Latest post by schrammelmann on Wednesday, 20 October 2021 15:51 CDT

schrammelmann

Hi!

Recently I migrated our ticket system from MaQma Helpdesk to Akeeba Ticket System. Retrieving emails is an important use case for me, but I am having some problems with it. I try to split my issues into separate tickets.

When I send an attachment with UTF8 characters in the filename via email to the ticket system, e.g. an image file, the mail is imported but not the attachment.

I did some research and I could imagine that the problem is the Joomla Media Manager not accepting the filename.

If I am correct, could the filename be converted to a random or an ASCII name in the plugin during import?

Many thanks in advance for your effort!

Michael

nicholas
Akeeba Staff
Manager

The filename is converted to a random name. We do not store attachment with their original name. But that's AFTER we ask Joomla to do the pre–upload checks.

The problem is that the original filename check is part of the security check for uploading files to Joomla. This is implemented in Joomla's core code, namely Joomla\CMS\Helper\MediaHelper::canUpload, lines 224–229 in Joomla 3.10.2. If the filename contains any non–ASCII characters it is immediately rejected. 

Unfortunately, we cannot remove that check nor can we tell Joomla to NOT mind the filename — the original file name is required for the security checks which include double extension tests and content tests depending on file extension and file type. Removing this check completely would allow uploading unsafe content to your site.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

schrammelmann

Thank you for your very good explanation.

Instead, I have to instruct my clients accordingly.

Regards,

Michael

 

 

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!