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

MB - Footer shows up as Last Post instead of username in the thread table

    Details

      Description

      Steps to reproduce:

      1. Add MB portlet
      2. Add new thread
      3. Define permissions and allow guests to Reply to Message (Permissions configuration in Site Admin)
      4. Logout and reply to thread message as guest
      5. Login as Test

      Expected Result
      Anonymous will appear as Last Post

      Actual Result
      The footer appears as Last Post. See attached gif.

      The console throws the following error when navigating to page and trying to access the buttons in the MB portlet toolbar:

      22:22:52,380 ERROR [http-bio-8080-exec-13][IncludeTag:128] Current URL /web/guest/message-boards-page/-/message_boards/message-boards-home?p_r_p_0_tag=&p_p_ajax=0&p_p_isolated=1 generates exception: javax.servlet.jsp.JspException: java.lang.ArrayIndexOutOfBoundsException
      java.lang.ArrayIndexOutOfBoundsException
              at com.liferay.portal.kernel.util.ArrayUtil.subset(ArrayUtil.java:1532)
              at com.liferay.taglib.ui.UserPortraitTag.getUserInitials(UserPortraitTag.java:86)
              at com.liferay.taglib.ui.UserPortraitTag.setAttributes(UserPortraitTag.java:129)
              at com.liferay.taglib.util.IncludeTag.callSetAttributes(IncludeTag.java:169)
              at com.liferay.taglib.util.IncludeTag.doStartTag(IncludeTag.java:104)
              at org.apache.jsp.html.taglib.ui.search_005fcontainer.user_jsp._jspService(user_jsp.java:444)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:64)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:75)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:52)
              at com.liferay.taglib.search.UserSearchEntry.print(UserSearchEntry.java:89)
              at org.apache.jsp.html.taglib.ui.search_005fiterator.list_jsp._jspService(list_jsp.java:971)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:64)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:75)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:52)
              at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:373)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:355)
      

      Reproduced on:
      Tomcat 7.0.62 + MYSQL 5.6
      Portal master GIT ID: d101dde8d9cd113455609c6510a44cbf8b79f922

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  7.0.0 Beta 5