Feature #4232

Do not attach too big data attachments to reports

Added by Jan Mach 9 months ago. Updated 7 months ago.

Status:ClosedStart date:07/27/2018
Priority:NormalDue date:
Assignee:Jan Mach% Done:

100%

Category:Development - Core
Target version:2.1

Description

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.


Related issues

Related to Mentat - Task #4114: Report content design and adjustments Closed 05/31/2018

Associated revisions

Revision 5366dce4
Added by Jan Mach 7 months ago

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)

History

#1 Updated by Jan Mach 9 months ago

  • Target version changed from Future to 2.1

#2 Updated by Jan Mach 7 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

#3 Updated by Jan Mach 7 months ago

  • Related to Task #4114: Report content design and adjustments added

#4 Updated by Jan Mach 7 months ago

  • % 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.

#5 Updated by Jan Mach 7 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

Also available in: Atom PDF