Projet

Général

Profil

Bug #74574

CardDef branché sur un workflow qui exécute une action de création de fiche du même model (RecursionError: maximum recursion depth exceeded while calling a Python object)

Ajouté par Sentry Io il y a environ un an. Mis à jour il y a environ un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
16 février 2023
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/106466/

KeyError: 'old_data'
  File "django/template/smartif.py", line 175, in translate_token
    op = OPERATORS[token]

ValueError: invalid literal for int() with base 10: 'old_data'
  File "django/template/base.py", line 771, in __init__
    self.literal = int(var)

RecursionError: maximum recursion depth exceeded while calling a Python object
(245 additional frame(s) were not displayed)
...
  File "wcs/wf/create_formdata.py", line 649, in perform
    new_formdata.perform_workflow()
  File "wcs/formdata.py", line 684, in perform_workflow
    return perform_items(wf_status.items, self)
  File "wcs/workflows.py", line 97, in perform_items
    url = item.perform(formdata) or url
  File "wcs/wf/create_formdata.py", line 649, in perform
    new_formdata.perform_workflow()
  File "django/utils/functional.py", line 236, in <genexpr>
    if any(isinstance(arg, Promise) for arg in itertools.chain(args, kwargs.values())):

Demandes liées

Lié à w.c.s. - Development #77106: Workflow: plus d'une action création d'une demande, dont le wf a aussi une action création d'une demandeFermé28 avril 2023

Actions
Lié à w.c.s. - Development #74849: Import de fiches, workflow avec une création de fiche ou de demande, "Détection d’une création récursive de demandes"Fermé24 février 2023

Actions

Révisions associées

Révision 0d407607 (diff)
Ajouté par Frédéric Péters il y a environ un an

workflows: detect recursive actions creating cards/forms (#74574)

Historique

#1

Mis à jour par Lauréline Guérin il y a environ un an

  • Projet changé de Suivi des traces à w.c.s.

Au cas où on veuille poser une vérification/limitation pour éviter ce genre de cas:
Model de fiche A branché sur un Workflow W
Premier statut de W: Action création d'une fiche branchée sur le même modèle de fiche A
=> création de fiches jusqu'à épuisement.

#2

Mis à jour par Robot Gitea il y a environ un an

  • Statut changé de Nouveau à Solution proposée
  • Assigné à mis à Frédéric Péters

Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :

#3

Mis à jour par Robot Gitea il y a environ un an

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

Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :

#4

Mis à jour par Robot Gitea il y a environ un an

  • Statut changé de Solution validée à Résolu (à déployer)

Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :

#5

Mis à jour par Transition automatique il y a environ un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#6

Mis à jour par Lauréline Guérin il y a environ un an

  • Lié à Development #77106: Workflow: plus d'une action création d'une demande, dont le wf a aussi une action création d'une demande ajouté
#7

Mis à jour par Lauréline Guérin il y a environ un an

  • Lié à Development #74849: Import de fiches, workflow avec une création de fiche ou de demande, "Détection d’une création récursive de demandes" ajouté
#8

Mis à jour par Transition automatique il y a environ un an

Automatic expiration

Formats disponibles : Atom PDF