opengento / magento2-category-import-export

This module allows to import and export categories data from/to CSV file.
https://opengento.fr/
MIT License
5 stars 0 forks source link

Import - Selected file fails field verification #2

Closed srmatthe closed 2 weeks ago

srmatthe commented 2 weeks ago

After selecting a file to import and then clicking the Upload and Import button the form fails with a validation error on the Select File to Import field.

image

Removing the validation declaration for the field in view/adminhtml/ui_component/import_category_form.xml allows the file to be uploaded and processed correctly.

Nice plugin by the way.

thomas-kl1 commented 2 weeks ago

Wow didn't expected to have a user so quickly 😄 (it has been published last night!)

What Magento version do you use? I can't reproduce

srmatthe commented 2 weeks ago

Haha, I did spot the age and didn't want to seem like complaining.

This is on 2.4.5-p8. Pretty vanilla installation of Magento built for some theme development work. Browser being used was Chrome.

I'll struggle for time to test further today but can have a go later in the week if needed.

thomas-kl1 commented 2 weeks ago

NVM I'm reproducing it now 🥴 Weird because it was working fine yesterday, I guess "cache" it is

thomas-kl1 commented 2 weeks ago

I'm going to release the fix and some improvement over the attributes selection on export tonight

thomas-kl1 commented 2 weeks ago

Beside that I've opened an issue on Magento repo, who know, maybe it will be fixed in a future!

srmatthe commented 2 weeks ago

Cool. Is the validation check meant to work on a file upload field like that then or is there a specific type for those?

thomas-kl1 commented 2 weeks ago

My guess is it is a native bug. Actually you setup on this field "file" an upload URL, so you can download a file with ajax and then it store the path. Maybe it is how it is intended to work "normally". In my opinion it should work anyhow we configured our field, to upload on submit or ajax.

thomas-kl1 commented 2 weeks ago

👋 @srmatthe the module is way more stable with the 0.3.0 release. You can now excluded available attributes from the config (catalog > catalog > category import export). Also any invisible attributes could not be exported or imported.

srmatthe commented 2 weeks ago

Excellent, thanks. I'll have a play over the next couple of days.

thomas-kl1 commented 1 week ago

FYI @srmatthe the issue has been confirmed by Adobe. Magento eng team should work on it (no ETA).

srmatthe commented 1 week ago

Hehe cool. My first ever genuine and acknowledged bug :)