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

When MailingListMessageListener cannot process a message due to an exception, then all messages received after this message will not be processed

    Details

    • Branch Version/s:
      6.0.x
    • Story Points:
      6

      Description

      To reproduce

      1. Add a category to the forum, configure it to be a mirror of a mailinglist
      2. Quickly Send an empty message to the mail adress you configured for the category then send two messages that do have a body

      MailingListMessageListener wont be able to create the MBMessage because an empty body is not allowed, it will throw an exception and the other two messages wont be processed

      The problem lies in the processMessages method which looks like this :

      protected void processMessages(
      MailingListRequest mailingListRequest, Message[] messages)
      throws Exception {

      for (Message message : messages) {
      try

      { processMessage(mailingListRequest, message); }

      finally

      { PermissionCheckerUtil.setThreadValues(null); }

      }
      }

      So if processing one message fails, the processMessages will exit and it wont continue processing the other messages

        Attachments

          Activity

            People

            Assignee:
            yvonne.han Yvonne Han
            Reporter:
            jelmer Jelmer Kuperus (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.0.0 M4