Bug #21241
Ne pas planter le rendu du workflow quand un statut utilisé dans une action wscall disparait
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
17 janvier 2018
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/workflows.py", line 374, in get_status 372 if status.id == id: 373 return status > 374 raise KeyError() 375 376 def get_backoffice_fields(self): locals: status = <wcs.workflows.WorkflowStatus object at 0x7f968e87d490> self = <Workflow 'Pr\xc3\xa9-Inscription Matin\xc3\xa9es Relais petite enfance' id:15> id = '1' File "/usr/lib/python2.7/dist-packages/wcs/wf/wscall.py", line 394, in get_target_status 392 if value in (':pass', ':stop'): 393 continue > 394 targets.append(self.parent.parent.get_status(value)) 395 return targets 396 locals: attribute = 'action_on_app_error' self = <wcs.wf.wscall.WebserviceCallStatusItem object at 0x7f968db2b410> targets = [] value = '1' File "/usr/lib/python2.7/dist-packages/wcs/admin/workflows.py", line 155, in graphviz 153 i = status.id 154 for item in status.items: > 155 next_status_ids = [x.id for x in item.get_target_status() 156 if x.id and x.id != status.id] 157 if not next_status_ids:
Fichiers
Révisions associées
Historique
Mis à jour par Thomas Noël il y a plus de 6 ans
- Fichier 0001-workflows-do-not-crash-on-missing-wscall-target-stat.patch 0001-workflows-do-not-crash-on-missing-wscall-target-stat.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Voilà pour l'affichage.
(J'ai cependant l'impression selon les tests plus haut que même si un statut n'existe plus, le formdata pourrait se le voir attribuer quand même, à tester et à tickette le cas échéant) → #21245
Mis à jour par Thomas Noël il y a plus de 6 ans
- Statut changé de En cours à Résolu (à déployer)
commit 834c97968ff258872df68263288489bd6ebce7fd Author: Thomas NOEL <tnoel@entrouvert.com> Date: Thu Jan 18 01:46:27 2018 +0100 workflows: do not crash on missing wscall target status (#21241)
Mis à jour par Frédéric Péters il y a plus de 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
workflows: do not crash on missing wscall target status (#21241)