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

IllegalArgumentException throws after published the deleted content conflicting publication

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 7.3.X, Master
    • Fix Version/s: None
    • Component/s: Publications
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Steps to reproduce

      1. Add a new Web Content Folder
      2. Enable Publications
      3. Add a new publication "P1"
      4. Edit "Web Content Folder" to "Web Content Folder Edited"
      5. Go to review changes
      6. Assert "Web Content Folder" Modified in WEB CONTENT FOLDER
      7. Add a new Publication "P2"
      8. Delete the "Web Content Folder"
      9. Go to review changes
      10. Assert "Web Content Folder" Deleted in WEB CONTENT FOLDER
      11. Publish "P2"
      12. Navigate to Web Content
      13. Select "P1"

      Actual Result:
      Following error throws

      2021-06-16 10:01:00.577 ERROR [http-nio-8080-exec-10][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet&p_p_lifecycle=0&p_p_state=maximized&p_v_l_s_g_id=20121&p_p_auth=o6LpHSB6 generates exception: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: {companyId=20097, name=com.liferay.journal.model.JournalFolder, primKey=40636, scope=4}
      com.liferay.portal.kernel.exception.NoSuchResourcePermissionException: {companyId=20097, name=com.liferay.journal.model.JournalFolder, primKey=40636, scope=4}
              at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasResourcePermission(ResourcePermissionLocalServiceImpl.java:1073)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.liferay.portal.service.impl.ResourceLocalServiceImpl.hasUserPermissions(ResourceLocalServiceImpl.java:406)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.liferay.portal.kernel.service.ResourceLocalServiceUtil.hasUserPermissions(ResourceLocalServiceUtil.java:345)
              at com.liferay.portal.security.permission.AdvancedPermissionChecker.doCheckPermission(AdvancedPermissionChecker.java:433)
              at com.liferay.portal.security.permission.AdvancedPermissionChecker._hasUserPermissionImpl(AdvancedPermissionChecker.java:1333)
              at com.liferay.portal.security.permission.AdvancedPermissionChecker._hasPermissionImpl(AdvancedPermissionChecker.java:1302)
              at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasPermission(AdvancedPermissionChecker.java:240)
              at com.liferay.portal.security.permission.StagingPermissionChecker.hasPermission(StagingPermissionChecker.java:137)
              at com.liferay.portal.security.permission.StagingPermissionChecker.hasPermission(StagingPermissionChecker.java:153)
              at com.liferay.portal.kernel.security.permission.wrapper.PermissionCheckerWrapper.hasPermission(PermissionCheckerWrapper.java:123)
              at com.liferay.depot.internal.security.permission.wrapper.DepotPermissionCheckerWrapper.lambda$hasPermission$3(DepotPermissionCheckerWrapper.java:109)
              at com.liferay.depot.internal.security.permission.wrapper.DepotPermissionCheckerWrapper._hasPermission(DepotPermissionCheckerWrapper.java:234)
              at com.liferay.depot.internal.security.permission.wrapper.DepotPermissionCheckerWrapper.hasPermission(DepotPermissionCheckerWrapper.java:107)
              at com.liferay.portal.kernel.internal.security.permission.resource.DefaultModelResourcePermission._contains(DefaultModelResourcePermission.java:159)
      

        Attachments

          Activity

            People

            Assignee:
            linda.sui Linda Sui
            Reporter:
            linda.sui Linda Sui
            Participants of an Issue:
            Recent user:
            Linda Sui
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              13 weeks, 2 days ago

                Packages

                Version Package