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.56k stars 9.32k forks source link

Exception is not getting handled properly while adding a product to cart in the compare product page #38200

Closed JasonTychons closed 4 months ago

JasonTychons commented 12 months ago

Preconditions and environment

Steps to reproduce

Expected result

The exception should be handled and a message manager message should be displayed in the controller. image

Actual result

image The above-mentioned page is loaded with a JSON response

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 12 months ago

Hi @JasonTychons. Thank you for your report. To speed up processing of this issue, 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:

JasonTychons commented 12 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 12 months ago

Hi @JasonTychons. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 12 months ago

Hi @JasonTychons, here is your Magento Instance: https://7c044137f5973a44c0717314c3a40a40.instances-prod.magento-community.engineering Admin access: https://7c044137f5973a44c0717314c3a40a40.instances-prod.magento-community.engineering/admin_ceac Login: a39236c9 Password: 464a1c71243c

JasonTychons commented 12 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 12 months ago

Hi @JasonTychons. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 12 months ago

Hi @JasonTychons, here is your Magento Instance: https://7c044137f5973a44c0717314c3a40a40.instances-prod.magento-community.engineering Admin access: https://7c044137f5973a44c0717314c3a40a40.instances-prod.magento-community.engineering/admin_69a9 Login: 8da9b032 Password: 74d78d64c8f4

JasonTychons commented 12 months ago

https://github.com/magento/magento2/assets/89189460/a2c29396-e041-4b42-80c6-506eac16af63

I have attached a screen recorded video of replicating the bug in Magento version 2.4.6-p3

Issue is replicable in Magento 2.4.6-p3

m2-assistant[bot] commented 12 months ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 12 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 12 months ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 12 months ago

Hi @engcom-Bravo, here is your Magento Instance: https://7c044137f5973a44c0717314c3a40a40.instances-prod.magento-community.engineering Admin access: https://7c044137f5973a44c0717314c3a40a40.instances-prod.magento-community.engineering/admin_0740 Login: 89e4a7a4 Password: 1246eceef00d

JasonTychons commented 11 months ago

Hi @engcom-Bravo , Were you able to replicate the issue?

m2-assistant[bot] commented 11 months ago

Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-November commented 11 months ago

Hello @JasonTychons,

Thank you for the report and collaboration!

We were able to verify this issue on 2.4-develop. When manually throwing the LocalizedException in addProduct method of the class Magento\Checkout\Model\Cart, we got the below json response:

image

Hence confirming the issue.

Thank you.

github-jira-sync-bot commented 11 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-10660 is successfully created for this GitHub issue.

m2-assistant[bot] commented 11 months ago

:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

engcom-Bravo commented 5 months ago

Hello,

Internal team has started to work on it

Thanks.

engcom-Bravo commented 4 months ago

Hello,

As I can see this issue got fixed in the scope of the internal Jira ticket AC-10660 by the internal team Related commits:https://github.com/search?q=repo%3Amagento%2Fmagento2+AC-10660&type=commits

Based on the Jira ticket, the target version is 2.4.8-beta1.

Thanks