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

Feedback (Contact Us) tool fails when attempting to send attachments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.7, 19.3, 20.0, 21.0 [Tentative]
    • Fix Version/s: 20.0, 21.0 [Tentative]
    • Component/s: Feedback Tool
    • Labels:
      None
    • Environment:
      Ubuntu 16.04, Java 8, Tomcat 8.5.24, MySQL 5.6.10 (AWS Aurora)
    • 20 status:
      Resolved
    • 19 status:
      Please Merge
    • 12 status:
      Please Merge
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      The feedback (Contact Us) tool does not appear to work when trying to send an attachment larger than a small text file.  Here is the procedure to reproduce (I did this on the Sakai nightly Experimental Trunk system).  

      1.  Verify that outbound SMTP is enabled.  These two properties will suffice:

      testMode@org.sakaiproject.email.api.EmailService=true
      smtpDebug@org.sakaiproject.email.api.EmailService=true

      2.  Log in as admin and add the Contact Us tool to a site

      3.  Edit the Site Information and verify that there is a valid e-mail address in Site Contact Email field.

      4.  Define a new user with a valid e-mail address and add as a member of the site.

      5.  Log in as the new user, navigate to the site and click Contact Us.

      6.  In the "Problem with content" box, click the "Report the problem..." link.

      7.  Select the site owner as the recipient, and provide a Subject and Summary.

      8.  Click "Choose File" and select a file which is relatively large but smaller than the maximum allowed.

      9.  Click Submit

      10. The log will show an error like this:

      java.io.FileNotFoundException: /var/trunk-experimental/temp/upload_c5ada01a_3b86_42d3_acbd_804f5b1cbd6c_00000083.tmp

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                farreri Miguel Pellicer
                Reporter:
                dhearn Dave Hearn
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration