Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11806

Error linked to mail when deleting a comment on a news

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0, 4.7.6
    • None
    • None
    • None
    • 4.8.0 M5

      How to reproduce : 

      (Detected on test for 4.7.5 but also present on master)

      • Configure mails to each new activity : 

      • On a global news or on a project news, delete a comment

      => This log is present : 
       

      Date: Thu Nov 30 17:47:03 CET 2023 (1701362823340) Thread: mail-sender-thread Message #: 3065 Level: ERROR NDC: Category: org.ametys.core.util.mail.SendMailHelper Message: Can't send mail with subject "null" to the address magali.franchet@ametys.org Location: org.ametys.core.util.mail.SendMailHelper$MailSender._sendMail(SendMailHelper.java:1015) Thrown: jakarta.mail.MessagingException: IOException while sending message;   nested exception is: java.io.IOException: No MimeMessage content at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1350) at org.ametys.core.util.mail.SendMailHelper$MailSender._sendMail(SendMailHelper.java:1007) at org.ametys.core.util.mail.SendMailHelper$MailSender.sendMail(SendMailHelper.java:912) at org.ametys.core.util.mail.SendMailHelper$MailSender.run(SendMailHelper.java:803) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.io.IOException: No MimeMessage content at jakarta.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:92) at jakarta.activation.DataHandler.writeTo(DataHandler.java:278) at jakarta.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1670) at jakarta.mail.internet.MimeMessage.writeTo(MimeMessage.java:1888) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1300) ... 6 more Caused by: jakarta.mail.MessagingException: No MimeMessage content at jakarta.mail.internet.MimeMessage.getContentStream(MimeMessage.java:1395) at jakarta.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:78) ... 10 more
       
      

       

            laurence Laurence Aumeunier
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: