Vote #79266
完了Attachments are added even if validation fails when updating an issue via email
0%
説明
Setting: There's an issue that a required field's empty.
When I try to update the issue via e-mail (but not add value to the required field), Redmine rejects the e-mail update (as it should).
However if the e-mail has an attachment, it adds the attachment to the issue nevertheless.
What it should do is to reject the attachment also.
journals
I found the cause of this problem in *MailHandler#receive_issue_reply*.
I made a patch and attach it.
--------------------------------------------------------------------------------
Setting the target version to 3.3.9.
--------------------------------------------------------------------------------
Committed the patch. Thank you all for reporting and fixing the issue.
--------------------------------------------------------------------------------
Merged to stable branches.
--------------------------------------------------------------------------------