Alert Processor vs Attachment File system can't send EMails properly

Description

Hi, I found one bug related to sending EMails by Alert Rules.

BUG:
FileNotFound Exception will raise when Alert engine tries to send email for more recipients and these recipients have set notification type as Notice+Email and also there has to be an attachment to be sent.

Problem is that attachment file system provider will delete temporary file after storing it as an attachment for first user and then file not found exception will raise when trying to send it for next users (Take a look at AlertProcessor.notifyUsers where you can see for loop).

I am wondering if could be the good solution to overload storage provider save method by new parameter Delete - it can be default true to keep current behaviour and only for this case call it with as false.

Environment

None

Assignee

Tomáš Švikruha

Reporter

Tomáš Švikruha

Labels

Tested By

None

Due date

2015/09/30

Priority

Major
Configure