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

Subscribe root category in Message Boards leads to NoSuchGroupException

    Details

      Description

      Steps to reproduce:

      1. Start clean portal, login as test user.
      2. Add Message Boards portlet to page.
      3. Subscribe the root category directly (subscribe root.png).
      4. Click My Subscriptions tab (my subscriptions.png), check the terminal.

      Expected result:
      No exception displayed in terminal.

      Actual result:
      NoSuchGroupException displayed in terminal.

      05:38:46,646 ERROR [RuntimePageImpl-6][StagingPermissionImpl:63] com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 0
      com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 0
      	at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:7953)
      	at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:7971)
      	at com.liferay.portal.service.impl.GroupLocalServiceImpl.getGroup(GroupLocalServiceImpl.java:1170)
      	at sun.reflect.GeneratedMethodAccessor686.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.sun.proxy.$Proxy28.getGroup(Unknown Source)
      	at com.liferay.portal.service.GroupLocalServiceUtil.getGroup(GroupLocalServiceUtil.java:216)
      	at com.liferay.portal.staging.permission.StagingPermissionImpl.hasPermission(StagingPermissionImpl.java:56)
      	at com.liferay.portal.kernel.staging.permission.StagingPermissionUtil.hasPermission(StagingPermissionUtil.java:45)
      	at com.liferay.portlet.messageboards.service.permission.MBCategoryPermission.contains(MBCategoryPermission.java:110)
      	at org.apache.jsp.html.portlet.message_005fboards.category_005faction_jsp._jspService(category_005faction_jsp.java:709)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      

        Attachments

        1. liferay.2013-11-14.log
          86 kB
        2. my subscriptions.png
          my subscriptions.png
          39 kB
        3. subscribe root.png
          subscribe root.png
          37 kB

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao (Inactive)
              Reporter:
              hong.zhao Hong Zhao (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, 36 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1