Project

General

Profile

Tâche #32161

Scénario #32231: Correction des actions "Connexions" de l'EAD2

Erreur du backend de l’action historique des connexions

Added by Benjamin Bohard 8 months ago. Updated 6 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/20/2021
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Sur AmonEcole et Scribe, dans l’EAD 2, la tentative d’affichage de l’historique (vide) des connexions déclenche une erreur de type list index out of range.

Sur AmonEcole, ça plante également avec un historique NON vide malgré la correction : ead:3ba302f2


Related issues

Related to Distribution EOLE - Tâche #31283: Adapter l'ead pour récupérer les logs de connexion depuis journalctl Fermé 11/30/2020

Associated revisions

Revision 3ba302f2 (diff)
Added by Joël Cuissinat 6 months ago

Execute journalctl command in `fichier` container

Ref: #32587
Ref: #32161

Revision ebcd162c (diff)
Added by Matthieu Lamalle 6 months ago

correction affichage historique connexion si vide ref #32161

History

#1 Updated by Joël Cuissinat 7 months ago

Ça le fait également sur un Scribe 2.7.2 (sans poste client) :

2021-04-27T11:02:02.450065+02:00 scribe.dompedago.etb1.lan ead-web[22992]: 2021-04-27T11:02:02+0200 [stderr#error] Traceback (most recent call last):
2021-04-27T11:02:02.450149+02:00 scribe.dompedago.etb1.lan ead-web[22992]: 2021-04-27T11:02:02+0200 [stderr#error]   File "/usr/share/ead2/frontend/web/gabarit.py", line 155, in format_action
2021-04-27T11:02:02.451171+02:00 scribe.dompedago.etb1.lan ead-web[22992]: 2021-04-27T11:02:02+0200 [stderr#error]     res = instanciate_template(template, content)
2021-04-27T11:02:02.451225+02:00 scribe.dompedago.etb1.lan ead-web[22992]: 2021-04-27T11:02:02+0200 [stderr#error]   File "/usr/share/ead2/frontend/web/gabarit.py", line 89, in instanciate_template
2021-04-27T11:02:02.451271+02:00 scribe.dompedago.etb1.lan ead-web[22992]: 2021-04-27T11:02:02+0200 [stderr#error]     result = str(chtpl)
2021-04-27T11:02:02.451311+02:00 scribe.dompedago.etb1.lan ead-web[22992]: 2021-04-27T11:02:02+0200 [stderr#error]   File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1053, in __unicode__
2021-04-27T11:02:02.451355+02:00 scribe.dompedago.etb1.lan ead-web[22992]: 2021-04-27T11:02:02+0200 [stderr#error]     return getattr(self, mainMethName)()
2021-04-27T11:02:02.451402+02:00 scribe.dompedago.etb1.lan ead-web[22992]: 2021-04-27T11:02:02+0200 [stderr#error]   File "_usr_share_ead2_frontend_web_template_scribe_connexion_quota_tmpl.py", line 235, in respond
2021-04-27T11:02:02.451445+02:00 scribe.dompedago.etb1.lan ead-web[22992]: 2021-04-27T11:02:02+0200 [stderr#error] IndexError: list index out of range

#3 Updated by Joël Cuissinat 7 months ago

  • Subject changed from Erreur du backend de l’action historique des connexions sur AmonÉcole 2.8.1 to Erreur du backend de l’action historique des connexions avec aucune station jointe au domaine

#4 Updated by Joël Cuissinat 7 months ago

  • Parent task set to #32231

#5 Updated by Joël Cuissinat 7 months ago

  • Description updated (diff)

#6 Updated by Joël Cuissinat 6 months ago

  • Subject changed from Erreur du backend de l’action historique des connexions avec aucune station jointe au domaine to Erreur du backend de l’action historique des connexions

#7 Updated by Joël Cuissinat 6 months ago

  • Related to Tâche #31283: Adapter l'ead pour récupérer les logs de connexion depuis journalctl added

#8 Updated by Joël Cuissinat 6 months ago

  • Description updated (diff)

#9 Updated by Joël Cuissinat 6 months ago

  • Description updated (diff)

#10 Updated by Matthieu Lamalle 6 months ago

  • Status changed from Nouveau to En cours

#11 Updated by Matthieu Lamalle 6 months ago

  • Status changed from En cours to Résolu

#12 Updated by Joël Cuissinat 6 months ago

  • Status changed from Résolu to Fermé
  • Assigned To set to Matthieu Lamalle
  • % Done changed from 0 to 100
  • Remaining (hours) set to 0.0

Non reproduit sur Scribe et AmonEcole 2.8.1.

ead$ git branch -r --contains ebcd162c  
  origin/2.7.2/master
  origin/2.8.0/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.7.2/master
  origin/dist/eole/2.8.0/master
  origin/dist/eole/2.8.1/master
  origin/master

Also available in: Atom PDF