-
Notifications
You must be signed in to change notification settings - Fork 9.4k
URL rewrite generation has a number of significant issues #17586
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
Comments
Hi @simonworkhouse. Thank you for your report.
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:
where @simonworkhouse do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@simonworkhouse, thank you for your report. |
@simonworkhouse, please split report into 3 different issues. |
@simonworkhouse, thank you. No, there is no need in this issue anymore. |
There are a number of conditions where the entries in the url_rewrite table can conflict sometimes silently failing to update the rewrites, sometimes showing links to unexpected conflicts and sometimes linking to conflicts that do not exist.
Preconditions
Steps to reproduce
Initial setup
Scenario one
Updating the value of "catalog/seo/category_url_suffix" can cause Magento to silently fail to update the entries in the url_rewrite table for a specific category
Scenario two
Updating the values of "catalog/seo/product_url_suffix", "catalog/seo/category_url_suffix" and "catalog/seo/product_use_categories" can cause Magento to fail to update the entries in the url_rewrite table while showing an error with a link to a non-existent rewrite.
Scenario three
Scenario three is essentially combinations of the procedures in scenarios one and two except where a valid link to the matching url_rewrite entry is displayed.
This scenario causes a number of issues with the import process but that will have to be reported as a separate bug.
Expected result
Scenario one
The URL keys for categories should never have been allowed to conflict like this and at the very least a warning notifying the admin user of conflicts in the url_rewrite table should be shown.
Scenario two
Same as scenario one except that there should be a much better way of managing URL rewrite conflicts.
Scenario three
Essentially the same as scenario one
Actual result
Scenario one
A success message saying "You saved the category." is displayed to the admin user.
Scenario two
An error stating tho following is displayed:
The link "sale-test/sandwiches.test" points to a record in the url_rewrite table that doesn't exist as the transaction that contained the insert for this entry was rolled back.
Scenario three
Unexpected URL conflicts are shown
The text was updated successfully, but these errors were encountered: