Bug #39360
anchor_expression à False
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
29 janvier 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
[2020-01-29 09:10:30] exception caught Exception: type = '<type 'exceptions.TypeError'>', value = 'eval() arg 1 must be a string or code object' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/workflows.py", line 1167, in must_trigger 1165 expression = self.anchor_expression 1166 global_variables = get_publisher().get_global_eval_dict() > 1167 get_publisher().notify_of_exception(sys.exc_info(), context='[TIMEOUTS]') 1168 1169 # convert anchor_date to datetime.datetime() locals: anchor_date = None endpoint_status_ids = ['wf-rejected', 'wf-finished', 'wf-11', 'wf-5', 'wf-16', 'wf-12', 'wf-1'] expression = False
(sur une installation de prod, pas lié python3)
>>> [x.__dict__ for x in formdef.workflow.global_actions[1].triggers] [{'anchor_expression': False, 'timeout': '0', 'id': '1f3f028b-abb8-4f5b-9ec2-5ddf1a7994cc', 'parent': <wcs.workflows.WorkflowGlobalAction object at 0x7f5380489d50>, 'anchor': 'python'}]
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-workflows-make-sure-anchor-expression-is-imported-as.patch 0001-workflows-make-sure-anchor-expression-is-imported-as.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Parce que passé par l'import/export XML,
Mis à jour par Thomas Noël il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 8b51e62e1ef3bd1792e413b03725ef6426577d9c Author: Frédéric Péters <fpeters@entrouvert.com> Date: Wed Jan 29 10:36:29 2020 +0100 workflows: make sure anchor expression is imported as a string (#39360)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
workflows: make sure anchor expression is imported as a string (#39360)