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

Web Content Display portlet displays in Guest View without preselected Web Content and throws an exception

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce this issue:

      1. Create two WCs (e.g. WC1/111, WC2/222)
      2. Remove Guest View permissions on WC1
      3. Add two Web Content Display portlets
      4. Select WC1 for one portlet, and WC2 for the other
      5. Log out

      The portlet with Guest View permissions is visible, but the selected content, "222", does not display. Console also throws the exception below:

      18:34:45,550 ERROR [com.liferay.portlet.layoutconfiguration.util.RuntimePageImpl-1][IncludeTag:206] Current URL /web/guest/home generates exception: com.liferay.portal.security.auth.PrincipalException
      18:34:45,553 ERROR [com.liferay.portlet.layoutconfiguration.util.RuntimePageImpl-1][IncludeTag:154] com.liferay.portal.security.auth.PrincipalException
              at com.liferay.portal.service.BaseServiceImpl.getUserId(BaseServiceImpl.java:95)
              at com.liferay.portal.service.BaseServiceImpl.getUser(BaseServiceImpl.java:88)
              at com.liferay.portal.service.BaseServiceImpl.getGuestOrUser(BaseServiceImpl.java:48)
              at com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl.incrementViewCounter(AssetEntryServiceImpl.java:133)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:78)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:162)
              at com.liferay.portlet.asset.service.AssetEntryServiceUtil.incrementViewCounter(AssetEntryServiceUtil.java:94)
              at org.apache.jsp.html.portlet.journal_005fcontent.view_jsp._jspService(view_jsp.java:746)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:55)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:292)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:200)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:81)
              at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3829)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      

        Attachments

          Activity

            People

            Assignee:
            koor.gai Koor Gai
            Reporter:
            brian.wulbern Brian Wulbern
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                6.2.0 CE M5