Project

General

Profile

Tâche #4750

Scénario #4749: Gestion des erreurs lors de l'importation

Les erreurs d'import doivent être claires

Added by Claude Perrin over 7 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/22/2015
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Remaining (hours):
0.0

Description

Bonjour,

l'import de CSV au format Mac/Unix crée un message d'erreur dans EAD

ERREUR
new-line character seen in unquoted field - do you need to open the file in universal-newline mode?

qui n'est pas reporté dans le mail de résultat d'import entre:
Lecture des élèves... et suppression du lockimport

/usr/share/ead2/backend/actions/lib/thread/logger.py:40: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
self.log(error.message)
/usr/share/ead2/backend/actions/lib/thread/logger.py:42: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
self.root_logger.exception(error.message)

Lecture des élèves...
suppression du lock eoleimport

Pourrait on au choix:
- accepter tous les formats ?
- mettre un message compréhensible dans l'interface et le mail.

Merci

Test Eleve_MAC.csv View - UTF-8 Unicode (with BOM) text, with CR line terminators (932 Bytes) Lionel Morin, 02/02/2016 03:41 PM

Test Eleve_WIN.csv View - UTF-8 Unicode (with BOM) text, with CRLF line terminators (950 Bytes) Lionel Morin, 02/02/2016 03:41 PM

Test Eleve_mac_bom.csv View - data (1.82 KB) Lionel Morin, 02/05/2016 08:57 AM

Test Eleve_win_bom.csv View - Little-endian UTF-16 Unicode text, with CRLF line terminators (1.85 KB) Lionel Morin, 02/05/2016 08:58 AM


Related issues

Related to scribe-backend - Tâche #17165: Importation BE1D non fonctionnelle en 2.5.2 Fermé 09/21/2016

Associated revisions

Revision 8b87c2b2 (diff)
Added by Lionel Morin over 4 years ago

Meilleure détection des formats de fin de ligne et du BOM (ref #4750 @3h)

Revision 43499f1e (diff)
Added by Lionel Morin over 4 years ago

Changement du message d'erreur si format exotique en import csv (ref #4750 @3h)

Revision 67fe756c (diff)
Added by Lionel Morin over 4 years ago

Amélioration du message d'erreur d'import (ref #4750)

History

#1 Updated by Joël Cuissinat over 7 years ago

  • Project changed from Scribe to scribe-backend
  • Status changed from Nouveau to A étudier
  • Assigned To set to Joël Cuissinat
  • Priority changed from Normal to Bas
  • Estimated time set to 0.75 h

Vous auriez un fichier "exemple" dans ce format que nous puissions reproduire le bug exact ?

#2 Updated by Claude Perrin over 7 years ago

  • File exemple.csv added

Voici

#3 Updated by Joël Cuissinat over 7 years ago

  • File 15profs.csv added

#4 Updated by Emmanuel GARETTE over 4 years ago

  • Status changed from A étudier to Nouveau
  • Distribution changed from EOLE 2.3 to Toutes

#5 Updated by Emmanuel GARETTE over 4 years ago

  • Tracker changed from Anomalie to Proposition Scénario
  • Subject changed from Import de Bases CSV Mac/Unix impossible avec message d'erreur peu compréhensible to Les erreurs d'import doivent être clairs
  • Category set to Version mineure
  • Assigned To deleted (Joël Cuissinat)
  • Estimated time deleted (0.75 h)

#6 Updated by Scrum Master over 4 years ago

  • Tracker changed from Proposition Scénario to Tâche
  • Start date set to 10/22/2015
  • Estimated time set to 4.00 h
  • Distribution set to EOLE 2.3

#7 Updated by Scrum Master over 4 years ago

  • Parent task set to #4749

#8 Updated by Lionel Morin over 4 years ago

  • File deleted (exemple.csv)

#9 Updated by Lionel Morin over 4 years ago

  • File deleted (15profs.csv)

#11 Updated by Joël Cuissinat over 4 years ago

  • Subject changed from Les erreurs d'import doivent être clairs to Les erreurs d'import doivent être claires

#12 Updated by Lionel Morin over 4 years ago

  • Status changed from Nouveau to En cours
  • % Done changed from 0 to 100

#13 Updated by Lionel Morin over 4 years ago

  • Assigned To set to Lionel Morin

#14 Updated by Lionel Morin over 4 years ago

  • Remaining (hours) changed from 4.0 to 0.5

#15 Updated by Scrum Master over 4 years ago

  • Status changed from En cours to Résolu

#16 Updated by Lionel Morin over 4 years ago

Test avec d'autre format de fichier (Test Eleve_mac_bom.csv et Test Eleve_win_bom.csv) :
Lecture des élèves...
ERREUR
line contains NULL byte
FIN

=> Ré-ouverture de la demande

#17 Updated by Lionel Morin over 4 years ago

  • % Done changed from 50 to 100

#18 Updated by Scrum Master over 4 years ago

  • Status changed from En cours to Résolu

#19 Updated by Laurent Flori over 4 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.5 to 0.0

Also available in: Atom PDF