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

Missing error message when AuthenticationFailedException is thrown

    Details

      Description

      Steps to reproduce:

      1. Navigate to Control Panel > Configuration > Server Administration
      2. Navigate to "Mail" tab
      3. Configure the Mail Settings [see comment]
      4. Save mail configuration
      5. Assert success message
      6. Navigate to Control Panel > Users > Users and Organizations
      7. Add a user

      Expected result: Failure to send message is thrown in console followed by AuthenticationFailedException.
      Actual result: No Liferay error message is displayed in console; only the AuthenticationFailedException is thrown:

      09:21:24,384 ERROR [liferay/mail-1][MailEngine:77] null
      javax.mail.AuthenticationFailedException
      	at javax.mail.Service.connect(Service.java:306)
      	at com.liferay.util.mail.MailEngine._send(MailEngine.java:554)
      	at com.liferay.util.mail.MailEngine.send(MailEngine.java:354)
      	at com.liferay.util.mail.MailEngine.send(MailEngine.java:429)
      	at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMessageListener.java:94)
      	at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageListener.java:109)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
      	at java.lang.Thread.run(Thread.java:745)
      

      Note: In the log4j xml log, the message field is empty; this results in the liferay log file printing out the string "null" as the error message, followed by the AuthenticationFailedException stacktrace.

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.7
      Portal Master GIT ID: 2df8f5347f564c613c387eb3648dee87ddc5e295

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 3 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP69
                  7.0.X
                  7.1.X
                  Master