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

Categories only visible to Guest and Admin user

    Details

      Description

      Steps
      1) Setup Liferay.
      2) Login as admin and create a new test site with a public page.
      3) Create a new user and assign him as a member to the new test site.
      4) In the control panel for the new site, go to content > categories.
      5) Check the box next to the "Topic" Vocabulary and create a category named "test".
      6) Create a new vocabulary called "New". Check its box and create a new category named "newtest".
      7) Go to the page for the test site and add two categories portlets.
      8) On the first one, click the gear icon > Configuration > Drop down under Vocabularies > Filter > Move "Topic" to Available > Save.
      9) Leave the second portlet default.
      10) Log out and go to the test page as a guest user - all categories are visible.
      11) Log in as the test user and go to the page - only the second portlet is displaying categories, but it is not displaying the "Topic" Vocabulary. The first portlet is blank.

      Expected Result: The Site member would see everything the Guest sees.
      Actual: The Site member cannot see all of the categories. The following error is thrown:

      21:08:58,202 INFO  [http-bio-9080-exec-1][AssetEntryListener:16] Calling create for asset 20490
      21:08:58,268 INFO  [http-bio-9080-exec-1][AssetEntryListener:16] Calling create for asset 20496
      21:09:08,151 ERROR [RuntimePageImpl-2][IncludeTag:129] Current URL /web/test1/test generates exception: com.liferay.portal.security.auth.PrincipalException
      com.liferay.portal.security.auth.PrincipalException
      	at com.liferay.portlet.asset.service.permission.AssetVocabularyPermission.check(AssetVocabularyPermission.java:46)
      	at com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl.getVocabulary(AssetVocabularyServiceImpl.java:337)
      	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.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.liferay.portlet.asset.service.AssetVocabularyServiceUtil.getVocabulary(AssetVocabularyServiceUtil.java:227)
      	at org.apache.jsp.html.taglib.ui.asset_005fcategories_005fnavigation.page_jsp._jspService(page_jsp.java:639)
      	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:57)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:290)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:184)
      21:10:03,361 INFO  [localhost-startStop-2][HotDeployEvent:145] Plugin test-listener-hook requires marketplace-portlet
      21:10:03,365 INFO  [localhost-startStop-2][HookHotDeployListener:982] Hook for test-listener-hook was unregistered
      

      Branch 6.2.x - fb66afdbe800b4afbd6870717b5e45a2d9cc226f: Reproduced
      Master - 5006111394c1d3add47fdb4af816269fe6535bd8: Reproduced

        Attachments

        1. 64043-fixed-6.2.x.PNG
          64043-fixed-6.2.x.PNG
          107 kB
        2. 64043-fixed-UI.PNG
          64043-fixed-UI.PNG
          90 kB
        3. 64043-reproduced-log.PNG
          64043-reproduced-log.PNG
          122 kB
        4. 64043-reproduced-UI.PNG
          64043-reproduced-UI.PNG
          67 kB

          Issue Links

            Activity

              People

              Assignee:
              sherry.zhu Sherry Zhu (Inactive)
              Reporter:
              michael.bowerman Michael Bowerman
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 39 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 CE RC1