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

Manage Tools erroneously sends an Import from Site email

    Details

    • 12 status:
      Resolved
    • Test Plan:
      Hide
      1. Note carefully which Instance on http://nightly2.sakaiproject.org/ for which you are testing in order to identify the corresponding Logs link that lead to the tomcat logs associated with that Instance.
      2. Vouch that instructor account you are using on the nightly server has an email address associated with it.
      • If it doesn’t, click Home and navigate to the Account tool.
      • Click “Modify Details”.
      • Enter a valid “Email” and your current password, then click “Update Details”.
      1. In a course site you have created, navigate to Site Info.
      2. Click “Manage Tools”.
      3. Select a tool whose checkbox is not yet selected, and click “Continue” to add the tool.
      4. Click “Finish” and then immediately note the time (e.g., by looking at a clock) for this event. 
      5. Open a new browser tab and navigate to http://nightly2.sakaiproject.org/.
      6. In the Logs column, click the link for the tomcat log that corresponds to the Instance identified in step 1 above.
      7. Click the catalina.out link.
      8. The bug will typically manifest as a sent email whose body text begins with the sentence, ‘The import process you started for "{site_title}" has completed.’ Because the nightly server will likely not send the email, you will need to locate the log message in catalina.out that looks like the snippet below. The date and time for that log message should correspond to the time noted in step 6 above-- though account for time zone differences. This bug will be fixed if no email log message corresponds to the event in step 6, but make sure you refresh the browser tab to ensure that catalina.out is updated to account for when step 6 occurred and thereafter.

      ===============================

      07-Dec-2017 13:41:46.372 INFO [pool-5-thread-6] org.sakaiproject.email.impl.BasicEmailService.testSend send: from: postmaster@qa12-mysql.nightly.sakaiproject.org to: hornersa@plu.edu subject: Sakai Site import completed for "Discussion 1 SMPL101" headerTo: hornersa@plu.edu replyTo: hornersa@plu.edu content: The import process you started for "Discussion 1 SMPL101" has completed.

      Visit the site to view the imported materials:

      https://qa12-mysql.nightly.sakaiproject.org/portal/site/63598d77-32c4-4288-a503-f5a1c565a538

      Regards,

      The Sakai Administrators

      additionalHeaders: [Precedence: bulk]

      Show
      Note carefully which Instance on http://nightly2.sakaiproject.org/ for which you are testing in order to identify the corresponding Logs link that lead to the tomcat logs associated with that Instance. Vouch that instructor account you are using on the nightly server has an email address associated with it. If it doesn’t, click Home and navigate to the Account tool. Click “Modify Details”. Enter a valid “Email” and your current password, then click “Update Details”. In a course site you have created, navigate to Site Info. Click “Manage Tools”. Select a tool whose checkbox is not yet selected, and click “Continue” to add the tool. Click “Finish” and then immediately note the time (e.g., by looking at a clock) for this event.  Open a new browser tab and navigate to http://nightly2.sakaiproject.org/ . In the Logs column, click the link for the tomcat log that corresponds to the Instance identified in step 1 above. Click the catalina.out link. The bug will typically manifest as a sent email whose body text begins with the sentence, ‘ The import process you started for "{site_title}" has completed. ’ Because the nightly server will likely not send the email, you will need to locate the log message in catalina.out that looks like the snippet below. The date and time for that log message should correspond to the time noted in step 6 above-- though account for time zone differences. This bug will be fixed if no email log message corresponds to the event in step 6, but make sure you refresh the browser tab to ensure that catalina.out is updated to account for when step 6 occurred and thereafter. =============================== 07-Dec-2017 13:41:46.372 INFO [pool-5-thread-6] org.sakaiproject.email.impl.BasicEmailService.testSend send: from: postmaster@qa12-mysql.nightly.sakaiproject.org to: hornersa@plu.edu subject: Sakai Site import completed for "Discussion 1 SMPL101" headerTo: hornersa@plu.edu replyTo: hornersa@plu.edu content: The import process you started for "Discussion 1 SMPL101" has completed. Visit the site to view the imported materials: https://qa12-mysql.nightly.sakaiproject.org/portal/site/63598d77-32c4-4288-a503-f5a1c565a538 Regards, The Sakai Administrators additionalHeaders: [Precedence: bulk]

      Description

      When using the Manage Tools function in Site Info to add a tool, clicking Finish now launches an email whose corresponding email template is sitemanage.siteImport.Confirmation. While this email notification would be expected when using Import from Site, no email notification is expected when using Manage Tools.

      Because I think that the nightly server prevents outgoing email to user accounts, I’m only able to confirm this issue on a local 12.x instance. Since this behavior seems to have surfaced only within the past week or so, this problem might be in the master branch too, affecting 13.x.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  hornersa Sean Horner
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code