Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-69853

Recipient only gets blank email when delivering report

Details

    Description

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.6.29. Portal ee-7.0.x GIT ID: 0ab1171c94b900052d742f3a06808dda1098372f.

      Steps to Reproduce:

      1. Set up 2 valid emails or a smtp server
      2. Go to Liferay > Configuration > Reports Admin
      3. Add New definition with the attached definition
      4. Add Report
      5. Input Email Notifications email address #1
      6. Input Email Recipient email address #2
      7. Generate
      8. View emails sent to each user

      Expected Result:
      Report email (email address #1) and notification email (email address #2) are successfully sent.

      Actual Result:
      Notification email is sent successfully. Email sent to recipient fails (email address #2). Email is blank and server throws error:

      00:42:15,187 ERROR [liferay/mail-1][MailEngine:131] null
      java.io.FileNotFoundException: /Users/vicnate5/Bundles/ee_release/ee-7.0.x-bundles/tomcat-8.0.32/temp/20161223244215175TECMUDFB (No such file or directory)
      	at java.io.FileInputStream.open(FileInputStream.java:195)
      	at java.io.FileInputStream.<init>(FileInputStream.java:138)
      	at javax.activation.FileDataSource.getInputStream(FileDataSource.java:97)
      	at javax.activation.DataHandler.writeTo(DataHandler.java:305)
      	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
      	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:845)
      	at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:361)
      	at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:98)
      	at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:889)
      	at javax.activation.DataHandler.writeTo(DataHandler.java:317)
      	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
      	at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
      	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)
      	at javax.mail.Transport.send0(Transport.java:169)
      	at javax.mail.Transport.send(Transport.java:98)
      	at com.liferay.util.mail.MailEngine._send(MailEngine.java:596)
      	at com.liferay.util.mail.MailEngine.send(MailEngine.java:355)
      	at com.liferay.util.mail.MailEngine.send(MailEngine.java:430)
      	at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMessageListener.java:94)
      	at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageListener.java:109)
      

      Alternate Additional testing steps:

      1. Go to generated report
      2. Go to file options > Deliver Report
      3. Input email address #2

      Email fails to send via "Deliver Report" option as well.

      Attachments

        Activity

          People

            victor.ware Victor Ware
            victor.ware Victor Ware
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 46 weeks, 2 days ago

              Packages

                Version Package
                7.0.X EE
                Master