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

NoSuchUserException throws when view the MB reply

    Details

    • Story Points:
      1.25
    • Fix Priority:
      3

      Description

      Steps to reproduce

      1. Add the following properties to portal-ext:
        message.boards.message.formats.default=html
        pop.server.notifications.enabled=true
        pop.server.subdomain=
        mail.session.mail.smtp.auth=true
        mail.session.mail.store.protocol=pop3
        mail.session.mail.transport.protocol=smtp
        
      2. Start up portal and login as Test(User 1)
      3. Navigate to Account Settings and use a valid email as email address
      4. Go to Control Panel > Configuration > Server Administration > Mail Tab to configure the gmail seetings
      5. Navigate to Virtual Instances and edit Mail Domain to be gmail.com
      6. Add a user (User 2) with a valid email address
      7. Add MB portlet to page
      8. Add MB category
      9. Enter email address (same with the email on Mail Tab) to Message Boards in Site Admin > Options > Configuration > Email From > Address
      10. Sign out as User 1 and login as User 2
      11. Subscribe to MB category
      12. Sign out and login as User 1
      13. Add new thread to category
      14. Login to User 2's email
      15. View email regarding new MB thread
      16. Reply to email
      17. Navigate back to portal as Test
      18. Wait for a moment, refresh page to see the notification count shows
      19. Go to the MB page, click the category name to view the reply

      Expected result: No exception throws
      Actual result: NoSuchUserException throws on the console, but it doesn't affect the functionality.

      08:08:32,551 ERROR [liferay/scheduler_dispatch-3][MessageListenerImpl:117] Unable to process message: com.sun.mail.pop3.
      POP3Message@37ab4937
      com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the key {companyId=20116, emailAddress=life
      ray.qa2@gmail.com}
              at com.liferay.portal.service.persistence.impl.UserPersistenceImpl.findByC_EA(UserPersistenceImpl.java:4581)
              at com.liferay.portal.service.impl.UserLocalServiceImpl.getUserByEmailAddress(UserLocalServiceImpl.java:2705)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169)
              at com.sun.proxy.$Proxy84.getUserByEmailAddress(Unknown Source)
              at com.liferay.message.boards.internal.pop.MessageListenerImpl.accept(MessageListenerImpl.java:111)
              at com.liferay.portal.pop.notifications.internal.MessageListenerWrapper.accept(MessageListenerWrapper.java:42)
              at com.liferay.portal.pop.notifications.internal.messaging.POPNotificationsMessageListener.notifyMessageListener
      s(POPNotificationsMessageListener.java:233)
              at com.liferay.portal.pop.notifications.internal.messaging.POPNotificationsMessageListener.doReceive(POPNotifica
      tionsMessageListener.java:136)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMess
      ageListenerWrapper.java:65)
              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)
      

        Attachments

          Activity

            People

            Assignee:
            sylvia.luan Sylvia Luan
            Reporter:
            yvonne.han Yvonne Han
            Participants of an Issue:
            Recent user:
            Yvonne Han
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.0.X EE