-
Notifications
You must be signed in to change notification settings - Fork 9.4k
url_key is empty by product import even if not wanted #12641
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
@synolia-bvo, thank you for your report. |
Well, I'm a little bit suprised by your answer. I don't understand why any product import replaces the "url_key" of the imported products by an empty value, even if the column "url_key" is not in the imported file. To fix this, I replaced the line :
in the \Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType::clearEmptyData function. |
@synolia-bvo, We are sorry for that reply - it concerned another reporter's issue. We posted it here accidentally. Now we've been trying to reproduce Your's one and we'll be back with the answer as soon as possible. |
Hello again @synolia-bvo. For unknown reason the rows from the commit you refer to (ebc946a) are no more present in release version of 2.2.0 and as far as we tested in 2.2.1 either. Could You please specify what is the exact release name of the version You use (f. e. 2.2.0-rc13). Thank You. |
The main problem is the row (The deleted "if" has been transfered to the "clearEmptyData" function) |
Yes @synolia-bvo, we confirm it. But not going deeply into details lets assume that in this context the code peace we are talking about does not cause the issue. At least we've been not able to reproduce it on neither of the versions we've tested including the very one You provided us with in the Last comment. Could You please try to reproduce it on a freshly installed branch. Thank You. |
Yes excuse me, the problem is only in branch 2.2-develop : https://github.com/magento/magento2/tree/2.2-develop which is the only one where the "empty" of the \Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType::clearEmptyData function has been replaced by "!isset". To summarize : |
@synolia-bvo, thank you for your report. |
@magento-engcom-team fixed in 2.2.1 but reappeared in latest releases (2.2.4, 2.3) => #14478 cause of #12083 |
I think this is now fixed in 2.2-develop (staged for 2.2.8 release) here; #17882 |
url_redirect value is overrrided by each product import, even if it is not wanted
Preconditions
Steps to reproduce
Expected result
Actual result
The problem is that url_key is always generated by import, because of this addition :
ebc946a
In the past (before 2.2, the url_key value was stripped by the function :
\Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType::clearEmptyData
But now, since there was a modification from "empty" to "!isset", the '' (empty) value is not stripped.
The text was updated successfully, but these errors were encountered: