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

NPE sending email to mail archive (FormattedText)

    XMLWordPrintable

    Details

    • 21 Status:
      Resolved
    • Test Plan:
      Hide

      Setup email archive

      Try to send an email (master trunk has this enabled at the moment)

      Expected: Email is received if it is from someone in the site or settings are anyone

      Actual: NPE in the logs, no emails

      Show
      Setup email archive Try to send an email (master trunk has this enabled at the moment) Expected: Email is received if it is from someone in the site or settings are anyone Actual: NPE in the logs, no emails

      Description

      When sending an email message to mail archive on nightly this is the exception that is printed, no email is sent. 

      It looks like this line on 3496 is an NPE on m_formattedText changed in SAK-44192

      m_formattedText.encodeFormattedTextAttribute(message, "body", getBody()); 

      30-Sep-2020 18:46:09.814 ERROR [org.subethamail.smtp.server.Session-/127.0.0.1:50062] org.sakaiproject.mailarchive.SakaiMessageHandlerFactory.data mailarchive General message service exception: (id=<CACErkybfo=QBRSAfg8xOojC8jPgio8yPdd6_1BOOFoWnS3DsNQ@mail.gmail.com>) (mailId=smpl_101_spring_2020) : java.lang.NullPointerException
      java.lang.NullPointerException
       at org.sakaiproject.message.util.BaseMessage$BaseMessageEdit.toXml(BaseMessage.java:3496)
       at org.sakaiproject.mailarchive.impl.BaseMailArchiveService$BaseMailArchiveMessageEdit.toXml(BaseMailArchiveService.java:1176)
       at org.sakaiproject.util.BaseDbDoubleStorage.putResource(BaseDbDoubleStorage.java:1156)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  dhorwitz David Horwitz
                  Reporter:
                  jonespm Matthew Jones
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration