Projet

Général

Profil

Development #39971

csvdatasource: Error: line contains NULL byte

Ajouté par Sentry Io il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
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

Révision d3051b50 (diff)
Ajouté par Benjamin Dauvergne il y a environ 4 ans

csvdatasource: validate CSV file in clean() (#39971)

Historique

#1

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
#2

Mis à jour par Benjamin Dauvergne il y a environ 4 ans

  • Assigné à mis à Benjamin Dauvergne
#3

Mis à jour par Benjamin Dauvergne il y a environ 4 ans

#5

Mis à jour par Lauréline Guérin il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée
#6

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)
#7

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

Formats disponibles : Atom PDF