Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-42763

Mail size limit ignored by Email tool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.8 [Tentative], 19.4, 20.0, 21.0 [Tentative]
    • Fix Version/s: None
    • Component/s: Kernel, Mailsender
    • Labels:
      None
    • Test Plan:
      1. Create a site with Forums or Email
      2. Use Email to send an email with at least one attachments or "watch" a forum and as another user post a response with an attachment
      3. See warning in log

      Description

      The mail.sendfromsakai.maxsize limit-- (see SAK-39116)-- does not limit mail sizes for mail with large attachments sent through the Email (Mailsender) tool. The setContent method of the kernel’s BasicEmailService class is where the maxsize is to be enforced. However, when this method is invoked by an email with attachments sent through Mailsender, the size of a MimeBodyPart object that represents an attachment is often if not always reported as “-1”. (I had to introduce logging statements in a local instance of Sakai to capture this.)

      Consequently for Mailsender emails that greatly exceed the limit mail.sendfromsakai.maxsize (default 25 Mb), the mail is not sent despite the Mailsender’s message to the user that states otherwise-- (that email was sent).

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  a.fish@lancaster.ac.uk Adrian Fish
                  Reporter:
                  hornersa Sean Horner
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Git Integration