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

Deleting a virtual instance will break permissions for Kaleo Designer

    Description

    Specific to DXP (Kaleo Designer deployed)

    Steps to Reproduce:

    1. Go to Control Panel > Configuration > Virtual Instances
    2. Add a new virtual instance (may need to set in hosts file 127.0.0.1 www.liferaytest.com)
      • Web ID: www.liferaytest.com
      • Virtual Host: www.liferaytest.com
      • Mail Domain: www.liferaytest.com
    3. Save
    4. Navigate to portal on the new instance (www.liferaytest.com:8080)
    5. Go to Control Panel > Configuration > Workflow
    6. Go to "Edit" the single approver workflow
    7. Go Back
    8. Navigate back to original instance of portal (localhost:8080)
    9. Go to Control Panel > Configuration > Virtual Instances
    10. Delete the virtual instance
    11. Go to Control Panel > Configuration > Workflow

    Expected Result:
    User has full permissions for Workflow on the default instance after removing a virtual instance.

    Actual Result:
    User does not have access to "Add" a workflow after deleting a virtual instance.

    Error in console:

    ERROR [http-nio-8080-exec-10][IncludeTag:128] Current URL /group/control_panel/manage?p_p_id=com_liferay_portal_workflow_web_portlet_ControlPanelWorkflowPortlet&p_p_lifecycle=0&p_p_state=maximized&p_v_l_s_g_id=20126 generates exception: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: {companyId=20099, name=com.liferay.portal.workflow.kaleo.designer, primKey=37414, scope=4}
    com.liferay.portal.kernel.exception.NoSuchResourcePermissionException: {companyId=20099, name=com.liferay.portal.workflow.kaleo.designer, primKey=37414, scope=4}
    	at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasResourcePermission(ResourcePermissionLocalServiceImpl.java:988)
    	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:158)
    	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
    	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
    	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
    	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
    	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
    	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:145)
    	at com.liferay.portal.service.impl.ResourceLocalServiceImpl.hasUserPermissions(ResourceLocalServiceImpl.java:397)
    	at com.liferay.portal.kernel.service.ResourceLocalServiceUtil.hasUserPermissions(ResourceLocalServiceUtil.java:321)
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker.doCheckPermission(AdvancedPermissionChecker.java:477)
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker._hasUserPermissionImpl(AdvancedPermissionChecker.java:1479)
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker._hasPermissionImpl(AdvancedPermissionChecker.java:1448)
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasPermission(AdvancedPermissionChecker.java:300)
    	at com.liferay.portal.security.permission.BasePermissionChecker.hasPermission(BasePermissionChecker.java:114)
    	at com.liferay.staging.security.internal.permission.StagingPermissionChecker.hasPermission(StagingPermissionChecker.java:133)
    	at com.liferay.portal.kernel.security.permission.BaseResourcePermissionChecker.contains(BaseResourcePermissionChecker.java:39)
    	at com.liferay.portal.workflow.kaleo.designer.web.internal.permission.KaleoDesignerPermission.contains(KaleoDesignerPermission.java:50)
    	at com.liferay.portal.workflow.kaleo.designer.web.internal.portlet.display.context.KaleoDesignerDisplayContext.isSaveKaleoDefinitionVersionButtonVisible(KaleoDesignerDisplayContext.java:578)
    	at com.liferay.portal.workflow.kaleo.designer.web.internal.portlet.display.context.KaleoDesignerDisplayContext.getCreationMenu(KaleoDesignerDisplayContext.java:124)
    

    Reproduced on:
    7.1.x-private: 3afc53f1a5421576195a48eaef332c90308691d0

      Attachments

        Activity

          People

          Assignee:
          diego.furtado Diego Furtado
          Reporter:
          victor.ware Victor Ware
          Participants of an Issue:
          Recent user:
          Tomáš Polešovský
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:
            Days since last comment:
            1 year, 36 weeks, 2 days ago

              Packages

              Version Package
              7.2.X
              Master