Project

General

Profile

Actions

Patch #27885

closed

Empty email attachments are imported to Redmine, creating broken DB records

Added by Felix Schäfer almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Redmine generally disallows empty or 0-byte-sized attachments, this is not checked when importing attachments from emails through the MailHandler though.

In the case of an empty email attachment, an Attachment record is created, though without disk_filename, disk_directory and digest. The attachment is then shown in the attachment list of the issue, but clicking on the attachment link to see the attachment or to download it leads to an error, as there is no file on disk for that attachment.


Files

27885.patch (3.42 KB) 27885.patch Felix Schäfer, 2018-01-03 14:28
Actions

Also available in: Atom PDF