Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-4184

Product-Content Based recommender datasource fails when including products not used in shop

Details

    Description

      Site: based in Minium.

      User: super admin

      When using the Product-Content Based Recommendations datasource in an Asset Publisher, this error is thrown in log:

      2020-07-01 12:08:23.781 ERROR [http-nio-8021-exec-4][render_portlet_jsp:131] null
      com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 20130 must have VIEW permission for com.liferay.commerce.product.model.CPDefinition 38483
              at com.liferay.commerce.product.internal.permission.CommerceProductViewPermissionImpl.check(CommerceProductViewPermissionImpl.java:79)
              at com.liferay.commerce.product.internal.util.CPDefinitionHelperImpl.getCPCatalogEntry(CPDefinitionHelperImpl.java:86)
              at com.liferay.commerce.machine.learning.internal.recommendation.data.source.ProductContentCommerceMLRecommendationCPDataSourceImpl.getResult(ProductContentCommerceMLRecommendationCPDataSourceImpl.java:126)
      

      And the Product Publisher fails in the UI and show the error message:

      "Product Publisher is temporarily unavailable."

      The Product with CPDefinition=38483 it's a product that belongs to the same Catalog used in the site, but the product is not being used in the site: Its visibility is filtered by channel and the channel of the site i'm using is not selected.

       

      Attachments

        Issue Links

          Activity

            People

              lorenzo.lapescara Lorenzo La Pescara
              daniel.defrancisco Daniel De Francisco
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  2.1.2