Project

General

Profile

Tâche #20288

Scénario #20704: L'importation Thot doit fonctionner avec le jeux de donnée 1703

Traceback import AAF Thot avec le jeux de donnée 1703

Added by Gilles Grandgérard over 6 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/24/2017
Due date:
% Done:

100%

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

Description

La régle de création du 'login' semble créer une login trop long....

00:07:25.875             Traceback (most recent call last):
00:07:25.879               File "/usr/sbin/parseaaf.py", line 12, in <module>
00:07:25.880                 main(path_aaf_complet, reset_db)
00:07:25.880               File "/usr/lib/python2.7/dist-packages/eoleaaf/parseaaf.py", line 47, in main
00:07:25.881                 parse_xml_files(aaftypes[2], xml_files, aaf)
00:07:25.882               File "/usr/lib/python2.7/dist-packages/eoleaaf/miscutil.py", line 30, in parse_xml_files
00:07:25.882                 getattr(lib, aaffunc)(fname)
00:07:25.883               File "/usr/lib/python2.7/dist-packages/eoleaaf/aaf.py", line 232, in parse_aaf_responsables
00:07:25.884                 responsable['ENTPersonLogin'] = gen_user_login(responsable['sn'], responsable['givenName'], responsable['uid'], 'responsable', responsable['id'])
00:07:25.884               File "/usr/lib/python2.7/dist-packages/eoleaaf/util.py", line 605, in gen_user_login
00:07:25.885                 raise Exception('Impossible de créer le login {0}'.format(login))
00:07:25.885             Exception: Impossible de créer le login delfourmarioneducatrice.conseildepartementalcotedor01
00:07:25.886             run-aaf-complet.sh : cat /var/log/eole/aafexceptions.log

jenkins.eole.lan/jenkins/job/2.6.1/job/test-thot-aaf-complet-1703-2.6.1-amd64/1/console

Associated revisions

Revision a7f38456 (diff)
Added by Daniel Dehennin about 6 years ago

Add login rule on length

The concatenation of givenname and surname must be lower than 48
characters:

- we add 2 digits at the end

- the login column in the database is 50 characters

  • eoleaaf/util.py (gen_user_login): add a condition to fallback on
    surname only when the login will be to long.

Ref: #20288

History

#1 Updated by Daniel Dehennin over 6 years ago

  • Parent task deleted (#20102)

#2 Updated by Daniel Dehennin over 6 years ago

  • Tracker changed from Tâche to Demande
  • Target version deleted (sprint 2017 16-18 Equipe MENSR)

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

  • Tracker changed from Demande to Tâche
  • Estimated time set to 4.00 h
  • Parent task set to #10704
  • Remaining (hours) set to 4.0

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

  • Parent task changed from #10704 to #20704

#5 Updated by Scrum Master over 6 years ago

  • Status changed from Nouveau to En cours

#6 Updated by Scrum Master over 6 years ago

  • Assigned To set to Daniel Dehennin

#7 Updated by Scrum Master over 6 years ago

  • Status changed from En cours to Nouveau

#8 Updated by Scrum Master over 6 years ago

  • Status changed from Nouveau to En cours

#9 Updated by Daniel Dehennin over 6 years ago

  • % Done changed from 0 to 90
  • Remaining (hours) changed from 4.0 to 2.0
  • Tentative de reproduction du problème à partir d’un XML traffiqué :
  • Champs givenname avec 30 caractères
  • Champs sn avec 30 caractères
  • Le changement introduit par #20882 ne fait plus planter l’import, MySQL tronque lui même les champs trop long :
    Lecture des élèves...
    /usr/lib/python2.7/dist-packages/MySQLdb/cursors.py:138: Warning: Data truncated for column 'ENTPersonLoginAlpha' at row 1
      self.fetchall()
    /usr/lib/python2.7/dist-packages/MySQLdb/cursors.py:138: Warning: Data truncated for column 'ENTPersonLogin' at row 1
      self.fetchall()
    /usr/lib/python2.7/dist-packages/MySQLdb/cursors.py:138: Warning: Data truncated for column 'givenName' at row 1
      self.fetchall()
    TOTAL : 3491 élèves
    
  • Je peux reproduire le problème après avoir supprimé le fichier /etc/mysql/conf.d/mysql_mode.cnf et redémarré MySQL
  • J’ai des problèmes d’exécution du test en 2.6.2
    • Les fichiers AAF sont copiés dans /var/tmp/aaf-complet et non pas /home/aaf-complet
    • Il utilise la procédure sqlite alors que c’est MySQL par défaut sur Thot.

J’ai le code dans une branche en attendant de comprendre ce qu’il se passe.

#10 Updated by Gilles Grandgérard about 6 years ago

le bug semble est liée à :

00:02:52.807             # Ajout de la base de données eoleaaf
00:02:52.807             ERROR 1046 (3D000) at line 4: No database selected
00:02:52.807             # Ajout de la base de données phpmyadmin
00:02:52.807             ## Mise à jour de base de données ##
00:02:52.807             # Mise à jour de la base de données eoleaaf
00:02:52.807             ERROR 1146 (42S02) at line 4: Table 'eoleaaf.enseignant' doesn't exist
00:02:52.807              - Erreur : Erreur lors de l'intégration du fichier /usr/share/eole/mysql/eole-aaf/updates/eoleaaf-update-0.sql
00:02:55.813             Stop Systemd service mysql                                              [  OK  ]

dans http://jenkins.eole.lan/jenkins/job/2.6.2/job/test-instance-acathot-2.6.2-amd64/17/console
les images instanciée thot ne sont pas ok !

#11 Updated by Daniel Dehennin about 6 years ago

  • % Done changed from 90 to 100
  • Remaining (hours) changed from 2.0 to 0.5

#12 Updated by Scrum Master about 6 years ago

  • Status changed from En cours to Résolu

#14 Updated by Gwenael Remond about 6 years ago

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

#15 Updated by Gwenael Remond about 6 years ago

  • Status changed from Fermé to Résolu

#16 Updated by Scrum Master about 6 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF