Skip to content
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

Fix #4430 (wrong exception raising during URL Rewrites saving process). #4984

Conversation

afoucret
Copy link

This PR is intended to fix the #4430 issue.

The problematic double exception raising is deleted since it should be manage by the ::doReplace method as mentioned in its PHPDoc and as implemented into the Magento\UrlRewrite\Model\Storage\DbStorage class.

The exception handling in ::doReplace provides enough guarantees to avoid duplicate url keys.

I suspect some kind of bug into the PHP engine (tested with PHP 7.0.6) since the original code seems valid to me but I was not able to figure what was wrong.

@afoucret
Copy link
Author

I close this one since we have a better PR to propose to fix the #4430 issue.

@afoucret afoucret closed this Jun 13, 2016
@afoucret afoucret deleted the fix4430-update_category_issue-duplicate_url_key branch June 13, 2016 06:08
@southerncomputer
Copy link
Contributor

Do you have reference to new PR to fix issue 4430?

@duyleekun
Copy link

@afoucret Do you know if any fix/PR officially merged?
I can't find the new PR that fixed #4430 though

magento-engcom-team pushed a commit that referenced this pull request Nov 8, 2019
[arcticfoxes] MC-19649: Granular ACL for B2B modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants