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

"No permissions" are shown to newly deployed portlets under cluster environment

Details

    Description

      Replicate steps,

      1. Setup cluster environment.
      2. Deploy same plugin on both nodes.
      3. Go to Control Panel-> Plugins Confirugation-> Check the plugin we just deployed.
      Result: On node 1, we can see permission options.
      On node 2, permission option does not show. In back-end, ERROR shows,

      16:06:22,242 ERROR [IncludeTag:426] Current URL /en_GB/group/control_panel/manage?p_p_id=132&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10165&_132_struts_action=%2Fplugins_admin%2Fedit_plugin&_132_redirect=http%3A%2F%2F160.79.20.13%3A13021%2Fen_GB%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D132%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D10165%26_132_advancedSearch%3Dfalse%26_132_keywords%3D%26_132_delta%3D20%26_132_resetCur%3Dfalse%26_132_cur%3D5%26_132_doAsGroupId%3D10165%26_132_struts_action%3D%252Fplugins_admin%252Fview%26_132_andOperator%3Dtrue&_132_pluginId=pfwportalissue70401portlet_WAR_pfwportalissue70401portlet&_132_pluginType=portlet&_132_title=pfw-portal-issue70401-portlet generates exception: com.liferay.portal.NoSuchResourceActionException: pfwportalissue70401portlet_WAR_pfwportalissue70401portlet#ADD_TO_PAGE
      16:06:22,242 ERROR [IncludeTag:154] com.liferay.portal.NoSuchResourceActionException: pfwportalissue70401portlet_WAR_pfwportalissue70401portlet#ADD_TO_PAGE
      at com.liferay.portal.service.impl.ResourceActionLocalServiceImpl.getResourceAction(ResourceActionLocalServiceImpl.java:98)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasResourcePermission(ResourcePermissionLocalServiceImpl.java:686)
      at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasResourcePermission(ResourcePermissionLocalServiceImpl.java:652)
      at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasScopeResourcePermission(ResourcePermissionLocalServiceImpl.java:791)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at com.liferay.portal.service.ResourcePermissionLocalServiceUtil.hasScopeResourcePermission(ResourcePermissionLocalServiceUtil.java:732)
      at jsp_servlet.html._portlet._plugins_admin.edit_plugin._hasPermission(_edit_plugin.java:353)
      at jsp_servlet.html._portlet._plugins_admin.edit_plugin._filterRoles(_edit_plugin.java:340)
      at jsp_servlet.html._portlet._plugins_admin.edit_plugin._jspService(_edit_plugin.java:919)
      at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

      We are able to replicate this issue not every time.
      It's probably relates to deployment order or the time gap between two deployments on two nodes.

      Attachments

        Activity

          People

            dale.shan Dale Shan (Inactive)
            sunny.gao Sunny Gao
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 34 weeks ago

              Packages

                Version Package
                6.1.20 EE GA2
                6.2.0 CE M5