pimcore / data-importer

This extension adds a comprehensive import functionality to Pimcore Datahub.
Other
38 stars 56 forks source link

[BUGFIX] Fixed import, when users temp preview file is corrupt #414

Closed turbo-ele closed 1 month ago

turbo-ele commented 2 months ago

If a users preview data is corrupt, the user is not able to open the importer anymore.

How to reproduce

  1. create a new import configuration
  2. upload csv with invalid encodings
  3. then the import config will crash and unable to open again.

Error Message: Status: 500 | URL: /admin/pimcoredataimporter/dataobject/config/get Message: Malformed UTF-8 characters, possibly incorrectly encoded

Corepex commented 1 month ago

@turbo-ele, thanks for your PR - I rebased it on 1.9. Looks good to me :rocket: