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.51k stars 9.31k forks source link

Url Rewrites are lost if an exception thrown or deadlock during regeneration #23429

Closed ilnytskyi closed 5 years ago

ilnytskyi commented 5 years ago

Magento 2.3.x probably 2.2 and 2.1 as well

Preconditions (*)

In some cases when the url_rewrite has a lock and e.g. after the product saving - M2 regenerates URL and leaves the product without readable urls and affected URL lead to 404 page since they had not been generated again.

1. 2.

Steps to reproduce (*)

  1. Save product to trigger url regenerate
  2. Simulate lock on url_rewrite table
  3. See an exception
  4. Clean cache and go to product page by known URL
  5. See 404 page

Expected result (*)

  1. URL leads to correct product page

Actual result (*)

  1. URL leads to 404 page
m2-assistant[bot] commented 5 years ago

Hi @ilnytskyi. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

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

For more details, please, review the Magento Contributor Assistant documentation.

@ilnytskyi do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?


m2-assistant[bot] commented 5 years ago

Hi @ilnytskyi. 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:


m2-assistant[bot] commented 5 years ago

Hi @shikhamis11. 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:

magento-engcom-team commented 5 years ago

:white_check_mark: Confirmed by @shikhamis11 Thank you for verifying the issue. Based on the provided information internal tickets MC-18687 were created

Issue Available: @shikhamis11, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

magento-engcom-team commented 5 years ago

Hi @ilnytskyi. Thank you for your report. The issue has been fixed in magento/magento2#23430 by @ilnytskyi in 2.3-develop branch Related commit(s):

The fix will be available with the upcoming 2.3.4 release.