-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 missing file while downloading file product custom option expired by Quote Lifetime & Enable Clear Shopping Cart #39529
Comments
Hi @tuyennn. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @tuyennn, Thanks for your reporting and collaboration. We have verified the issue in Latest 2.4-develop instance and the issue is not reproducible.Kindly refer the attached video. Screen.Recording.2025-01-13.at.10.42.42.am.movWe are able to download the image successfully. Kindly recheck the issue in Latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible. Thanks. |
@engcom-Bravo Can you confirm at the time you download the file, the quote of order CustomOption-2025-01-13_16.39.59.mp4Here what I found, the 404 page occurred after the quote was deleted before you download the file |
Hi @tuyennn, Thanks for your update. We have verified the issue in Latest 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots. Screen.Recording.2025-01-13.at.10.42.42.am.movThe quote for order has been deleted and We are able to download the image successfully. Kindly recheck the issue in Latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible. Thanks. |
@engcom-Bravo, I re-verified this issue on the When a quote is deleted, the associated items in the Here are some screenshots for reference: Additionally, consider how the /** @var $option \Magento\Quote\Model\Quote\Item\Option */
$option = $this->_objectManager->create(
\Magento\Quote\Model\Quote\Item\Option::class
)->load($quoteItemOptionId); If the if (!$option->getId()) {
return $resultForward->forward('noroute');
} As a result, a 404 error occurs. Can you please provide a recording or confirm the steps you follow to delete the quote? Additionally, verify if the associated |
Preconditions and environment
Steps to reproduce
(Stores > Configuration > Sales > Checkout > Shopping Cart)
Expected result
Actual result
Additional information
Download controller requested to
quote_item_option
table where the quote of current order was no longer exist by Quote Lifetime & Enable Clear Shopping Cart leading the request to 404.here is a constraint key relationship between the following tables:
quote
=>quote_item
=>quote_item_option
, tables.For faster reproduction, you can manually delete the quote instead of waiting for the Quote Lifetime to expire.
Suggestion
sales_order_item
table.sales_order_item_option
, to store attached file references that are independent of the quote expiration and cleaning process.Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: