Do not attach too big data attachments to reports
|Assignee:||Jan Mach||% Done:|
|Category:||Development - Core|
Calculate total size of report data attachments and when they cross given threshold do not attach them to mailed report message. Instead there should be short information about the fact the report was truncated somewhere within the message with link where the data can be downloaded.
Fix: Prevented reporter from attaching too big files to the report.
It was possible for the reporter to attach files of any size to the report. The MTA then complained for the message being too big and refused to mail it. Now it is possible for each group co configure maximal attachment size limit (defaults to 10MB). Attachment files exceeding this limit will not be added to the report and user will be informed in the email text to download it from the server. (Redmine issue: #4232)
- % Done changed from 10 to 90
The attached commit resolves this issue. Each group can now configure the maximal size of email attachments (defaults to 10MB), files exceeding this limit will not be added to the email and users will have to download them (there will be a short text line in the email body informing the user about that).
The commit contains full work including changes in reporter, its configuration file, all underlying libraries and also in web interface views and forms that enable user to configure the new reporting setting.