Bug #22466
saut et condition incomplète
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
12 mars 2018
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Exception: type = '<type 'exceptions.SyntaxError'>', value = 'unexpected EOF while parsing (<string>, line 0)' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/wf/jump.py", line 229, in must_jump 227 condition = self.condition 228 global_variables = get_publisher().get_global_eval_dict() > 229 get_publisher().notify_of_exception(sys.exc_info()) 230 must_jump = False 231 locals: condition = {'type': 'python', 'value': ''}
Fichiers
Révisions associées
misc: do not migrate empty strings to python conditions (#22466)
Historique
Mis à jour par Frédéric Péters il y a environ 6 ans
- Fichier 0001-workflows-do-not-crash-on-incomplete-jump-condition-.patch 0001-workflows-do-not-crash-on-incomplete-jump-condition-.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 6 ans
(rapide grep "if condition" et pas d'autres occurences)
Mis à jour par Frédéric Péters il y a environ 6 ans
- Fichier 0001-misc-do-not-migrate-empty-strings-to-python-conditio.patch 0001-misc-do-not-migrate-empty-strings-to-python-conditio.patch ajouté
Cet autre patch, pour en amont ne pas créer de manière généralisée des conditions python en présence d'une chaine vide.
Mis à jour par Thomas Noël il y a environ 6 ans
Frédéric Péters a écrit :
Cet autre patch, pour en amont ne pas créer de manière généralisée des conditions python en présence d'une chaine vide.
post_condition['condition'] = {}
dans un cas et self.condition = None
dans l'autre, je suis pas fan. {}
dans les deux cas ?
Mis à jour par Frédéric Péters il y a environ 6 ans
Mis à jour par Frédéric Péters il y a environ 6 ans
- Statut changé de En cours à Résolu (à déployer)
commit 392039216ab5ca91faf9c687c329b6e7578eff68 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Mon Mar 12 14:17:49 2018 +0100 misc: do not migrate empty strings to python conditions (#22466) commit fe2b701f7dd51a0ec30e87a963e3bb3668a02698 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Mon Mar 12 14:09:00 2018 +0100 workflows: do not crash on incomplete jump condition (#22466)
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 incomplete jump condition (#22466)