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

SocialActivity for MBMessage created before storing message into database

    Details

    • Story Points:
      6
    • OS:
      Windows 8
    • JDK:
      Oracle Sun JDK 7
    • Application Servers:
      Apache Tomcat 7.0.42

      Description

      When SocialActivity event listener is implemented and it process a new MBMessage activity (when a new thread into Message Boards is added), it is unable to access message properties as that message is not in the database yet:

      MBMessageLocalServiceUtil.getMBMessage(messageId); // returns NoSuchMessageException

      When related database table is investigated afterwards, that messageId is present there. So I think SocialActivity is triggered just too early.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yvonne.han Yvonne Han
              Reporter:
              honyk Jan Tošovský
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 M4