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

Fail to publish the publication intermittently with web content with category on sqlserver2019

    Description

    Steps to reproduce

    1. Enable Publication
    2. Add a new publication "Publication Name"
    3. Add a new site "Site Name"
    4. Add a new Vocabulary "Vocabulary Name"
    5. Add a new Category "Category Name" under the new Vocabulary
    6. Add a web content with the category
    7. Add a new page "Test Page"
    8. Add Search Bar and Search Results in the page
    9. Search "Category Name"
    10. Asset the web content displays
    11. Publish the publication "Publication Name" with JSON
      curl http://localhost:8080/api/jsonws/ct.ctcollection/publish-ct-collection \
        -u [email protected]:test \
        -d userId=${userId}\
        -d ctCollectionId=${ctCollectionId} 
      

    Actual Result:
    Fail to publish the publication and following error throws

    2022-03-07 00:07:59.972 ERROR [http-nio-8080-exec-5][IncludeTag:128] Current URL /group/site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet generates exception: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: {companyId=45887, name=com.liferay.journal.model.JournalFolder, primKey=48184, scope=4}
    com.liferay.portal.kernel.exception.NoSuchResourcePermissionException: {companyId=45887, name=com.liferay.journal.model.JournalFolder, primKey=48184, scope=4}
    	at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasResourcePermission(ResourcePermissionLocalServiceImpl.java:1072) ~[portal-impl.jar:?]
    	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66) ~[portal-kernel.jar:?]
    	at com.liferay.portal.kernel.service.ResourcePermissionLocalServiceWrapper.hasResourcePermission(ResourcePermissionLocalServiceWrapper.java:800) ~[portal-kernel.jar:?]
    	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66) ~[portal-kernel.jar:?]
    	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) ~[portal-impl.jar:?]
    	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69) ~[portal-impl.jar:?]
    	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?]
    	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) ~[portal-impl.jar:?]
    	at com.liferay.portal.service.impl.ResourceLocalServiceImpl.hasUserPermissions(ResourceLocalServiceImpl.java:408) ~[portal-impl.jar:?]
    	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) ~[portal-impl.jar:?]
    	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) ~[portal-impl.jar:?]
    	at com.liferay.portal.kernel.service.ResourceLocalServiceUtil.hasUserPermissions(ResourceLocalServiceUtil.java:345) ~[portal-kernel.jar:?]
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker.doCheckPermission(AdvancedPermissionChecker.java:433) ~[portal-impl.jar:?]
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker._hasUserPermissionImpl(AdvancedPermissionChecker.java:1322) ~[portal-impl.jar:?]
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker._hasPermissionImpl(AdvancedPermissionChecker.java:1291) ~[portal-impl.jar:?]
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasPermission(AdvancedPermissionChecker.java:240) ~[portal-impl.jar:?]
    	at com.liferay.portal.security.permission.StagingPermissionChecker.hasPermission(StagingPermissionChecker.java:137) ~[portal-impl.jar:?]
    	at com.liferay.portal.security.permission.StagingPermissionChecker.hasPermission(StagingPermissionChecker.java:153) ~[portal-impl.jar:?]
    	at com.liferay.portal.kernel.security.permission.wrapper.PermissionCheckerWrapper.hasPermission(PermissionCheckerWrapper.java:123) ~[portal-kernel.jar:?]
    	at com.liferay.on.demand.admin.internal.security.permission.wrapper.OnDemandAdminPermissionCheckerWrapper.lambda$hasPermission$3(OnDemandAdminPermissionCheckerWrapper.java:78) ~[?:?]
    

      Attachments

        Activity

          People

          Assignee:
          support-lep@liferay.com SE Support
          Reporter:
          linda.sui Linda Sui
          Participants of an Issue:
          Recent user:
          Felipe Lins
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

            Created:
            Updated:
            Days since last comment:
            14 weeks ago

              Packages

              Version Package