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)
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
Révisions associées
Historique
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.
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 :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/129
- Titre : workflows: detect recursive actions creating cards/forms (#74574)
- Modifications : https://gitea.entrouvert.org/entrouvert/wcs/pulls/129/files
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 :
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 :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/129
- Titre : workflows: detect recursive actions creating cards/forms (#74574)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/129/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
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é
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é
workflows: detect recursive actions creating cards/forms (#74574)