Projet

Général

Profil

Bug #39360

anchor_expression à False

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

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

Révision 8b51e62e (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

workflows: make sure anchor expression is imported as a string (#39360)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

Parce que passé par l'import/export XML,

#2

Mis à jour par Thomas Noël il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée
#3

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)
#4

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

Formats disponibles : Atom PDF