Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-13856

mail node should use the EMAIL_NOTIFICATION_TEST_ADDRESS param if the testAddress element is not filled in and not production

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Quality Assurance
    • Labels:
    • Rice Team:
      QA

      Description

      When an email node is used, see:

      https://test.kuali.org/confluence/display/KULRICE/eDocLite+e-mail+Initiator+Example

      If there is no element for testAddress, then the rice param EMAIL_NOTIFICATION_TEST_ADDRESS should be used if set, and if not should follow the rules for other email. i.e. if normal emails are sent out, then send this. Not sure what the rules are, but would be nice to be consistent with other parts of Rice.

      This is hardcoded in EmailNode.java

      if (!isProduction()) {
      NodeList testAddresses = document.getElementsByTagName("testAddress");
      if (testAddresses.getLength() >= 1)

      { this.to = testAddresses.item(0).getTextContent(); }

      And also this, which silently ignores if non prod and no testAddress element:

      if (!StringUtils.isBlank(to))

      { KEWServiceLocator.getEmailService().sendEmail(new EmailFrom(from), new EmailTo(to), new EmailSubject(emailContent.getSubject()), new EmailBody(emailContent.getBody()), emailContent.isHtml()); }

      Thanks,
      Chris

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              mchyzer Chris Hyzer (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: