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

NoSuchResourceActionException is thrown when access to a page where an AP displays a WC as guest

    Details

      Description

      Step to reproduce:

      1. Add a widget page in default site
      2. Add an Asset Publisher to page
      3. Navigate to the Web Content admin
      4. Add a web content based on Basic Web Content
      5. Navigate to the widget page
      6. Sign out
      7. Navigate to the widget page

      Expected Results:
      There shouldn't be an exception thrown in server console.

      Actual Results:
      The following exception is thrown in console.

      2020-11-11 01:13:09.318 ERROR [http-nio-8080-exec-5][SearchPermissionCheckerImpl:159] com.liferay.portal.kernel.exception.NoSuchResourceActionException: com.liferay.translation.model.TranslationEntry#VIEW
      com.liferay.portal.kernel.exception.NoSuchResourceActionException: com.liferay.translation.model.TranslationEntry#VIEW
              at com.liferay.portal.service.impl.ResourceActionLocalServiceImpl.getResourceAction(ResourceActionLocalServiceImpl.java:323)
              at sun.reflect.GeneratedMethodAccessor151.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.sun.proxy.$Proxy28.getResourceAction(Unknown Source)
              at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasResourcePermission(ResourcePermissionLocalServiceImpl.java:1171)
              at sun.reflect.GeneratedMethodAccessor501.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

      Reproduced on:
      Tomcat 9.0.37 + MySQL 5.7. Portal master GIT ID: 9226b10831eed5db236b208be0c6e85c8aafbe62.

      Can not be reproduced on:
      Tomcat 9.0.37 + MySQL 5.7. Portal 7.3.x-private GIT ID: e40f5848bdcd4bd77fe71943f31f15c85ac8ddcd.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              Participants of an Issue:
              Recent user:
              Tomáš Polešovský
              Engineering Assignee:
              Adolfo Pérez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                26 weeks, 5 days ago

                  Packages

                  Version Package
                  Master