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

Can't add a product to the cart as a guest

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.1
    • Component/s: Shopping Experience
    • Labels:
      None

      Description

      Assumptions

      1. Site initialized using Speedwell
      2. Not logged in (using guest user)

      Steps to Reproduce

      1. Go to the catalog page of Speedwell as a guest user (http://domain.com/web/sitename/catalog)
      2. Try to add a product to the cart

      Expected Result

      Product is added to the cart

      Actual Result

      Product is not added to the cart

      Error message in the UI, e.g. User 20103 must have VIEW permission for com.liferay.commerce.product.model.CommerceCatalog 43932

      Notes

      Caused by https://github.com/liferay/liferay-portal-ee/blob/7.1.x/modules/apps/commerce/commerce-product-service/src/main/java/com/liferay/commerce/product/internal/option/CommerceOptionValueHelperImpl.java#L59-L63

      Reproduced On

      7.1

      Tomcat 9.0.33 + HSQL 2.3.3
      DXP 7.1 FP17
      Commerce marco-leo/liferay-portal-ee:7.1.x git hash 81d645a88651067f4dda24f226b90657efa5180f

      Not yet tested on 7.2

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lorenzo.lapescara Lorenzo La Pescara
              Reporter:
              corbin.murakami Corbin Murakami
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.1