Development #39971
csvdatasource: Error: line contains NULL byte
Début:
18 février 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/567/
Error: line contains NULL byte (11 additional frame(s) were not displayed) ... File "passerelle/forms.py", line 25, in save return super(GenericConnectorForm, self).save(commit=commit) File "django/forms/models.py", line 468, in save self.instance.save() File "passerelle/apps/csvdatasource/models.py", line 164, in save self.cache_data() File "passerelle/apps/csvdatasource/models.py", line 174, in cache_data for block in batch(enumerate(self.get_rows()), 5000): File "passerelle/apps/csvdatasource/models.py", line 225, in get_rows rows = list(reader) Internal Server Error: /manage/csvdatasource/add
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a environ 4 ans
- Projet changé de Suivi des traces à Passerelle
- Sujet changé de Error: line contains NULL byte à csvdatasource: Error: line contains NULL byte
Mis à jour par Benjamin Dauvergne il y a environ 4 ans
- Fichier 0001-csvdatasource-validate-CSV-file-in-clean-39971.patch 0001-csvdatasource-validate-CSV-file-in-clean-39971.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Benjamin Dauvergne il y a environ 4 ans
- Fichier 0001-csvdatasource-validate-CSV-file-in-clean-39971.patch 0001-csvdatasource-validate-CSV-file-in-clean-39971.patch ajouté
Encore mieux avec un test.
Mis à jour par Lauréline Guérin il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Benjamin Dauvergne il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit d3051b50d76e396ff26fbb9f74062b0ad3924941 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Tue Feb 18 11:33:47 2020 +0100 csvdatasource: validate CSV file in clean() (#39971)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
csvdatasource: validate CSV file in clean() (#39971)