magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

umasked quote_id being passed when calling estimate-shipping-methods API in checkout page #35167

Closed vicehope closed 2 years ago

vicehope commented 2 years ago

Preconditions (*)

  1. Magento 2.4.3-p1

Steps to reproduce (*)

  1. Login to storefront as a regular customer
  2. Add few items into the cart
  3. Click on "Proceed to checkout"
  4. Checkout page renders on the browser
  5. API call to rest/home3/V1/guest-carts/22806/estimate-shipping-methods where 22806 is the unmasked quote_id

Expected result (*)

  1. Checkout as registered customer
  2. Able to proceed to get shipping quote. Call API rest/home3/V1/guest-carts//estimate-shipping-methods using the masked quote ID (hashed ID)
  3. Redirect to payment page and complete the order

Actual result (*)

  1. Checkout page doesn't recognize the login session, it is checking out as guest identity image

  2. Call estimate-shipping-methods with unmasked quote_id provided image

  3. API response with error No such entity because of unmasked quote_id doesn't exists in masked quote mapping table image

Additional Information

  1. the properties window.checkoutConfig.quoteData.entity_id has stored a unmasked value image

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 2 years ago

Hi @vicehope. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

ryanpalmerweb commented 2 years ago

@vicehope What was the issue?

fidellakis-coolibar commented 1 year ago

Interested in knowing what the fix was also. Suffering from this issue currently.