Bug #9456
crash sur import workflow avec jump sans timeout
Début:
30 décembre 2015
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Un workflow avec une action de saut automatique, sans timeout, on remarque que timeout='' ce qui s'exporte sous forme <timeout/>
dans le XML.
Et lors de l'import, on a donc ce crash:
Exception: type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'encode'' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/wf/jump.py", line 110, in timeout_init_with_x ml 108 self.timeout = None 109 else: > 110 timeout = elem.text.encode(charset) 111 if timeout.startswith('='): 112 self.timeout = timeout locals: self = <wcs.wf.jump.JumpWorkflowStatusItem object at 0x3deb090> charset = 'utf-8' elem = <Element 'timeout' at 0x4fb9dd0> include_id = False
Fichiers
Révisions associées
Historique
Mis à jour par Thomas Noël il y a plus de 8 ans
- Fichier 0001-wf-jump-handle-empty-timeout-in-xml-import-9456.patch 0001-wf-jump-handle-empty-timeout-in-xml-import-9456.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a plus de 8 ans
- Statut changé de En cours à Résolu (à déployer)
commit c8178f914c5f0926d8af9b50f41299129e7048e5 Author: Thomas NOEL <tnoel@entrouvert.com> Date: Wed Dec 30 15:52:53 2015 +0100 wf/jump: handle empty timeout in xml import (#9456)
wf/jump: handle empty timeout in xml import (#9456)