Bug #70079
formdata avec un status None au moment d'un perform_workflow, sur un jump (AttributeError: 'NoneType' object has no attribute 'items')
Début:
11 octobre 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/95971/
AttributeError: 'NoneType' object has no attribute 'items' (12 additional frame(s) were not displayed) ... File "wcs/wf/jump.py", line 116, in _q_traverse return super()._q_traverse(path) File "quixote/directory.py", line 82, in _q_traverse obj = self._q_lookup(component) File "wcs/wf/jump.py", line 91, in _q_lookup url = jump_and_perform( File "wcs/wf/jump.py", line 49, in jump_and_perform url = formdata.perform_workflow(event=event) File "wcs/formdata.py", line 660, in perform_workflow url = perform_items(wf_status.items, self, event=event)
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a plus d'un an
- Projet changé de Suivi des traces à w.c.s.
- Sujet changé de AttributeError: 'NoneType' object has no attribute 'items' à formdata avec un status None au moment d'un perform_workflow, sur un jump (AttributeError: 'NoneType' object has no attribute 'items')
Mis à jour par Frédéric Péters il y a plus d'un an
- Fichier 0001-workflows-ignore-trigger-jumps-to-undefined-invalid-.patch 0001-workflows-ignore-trigger-jumps-to-undefined-invalid-.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Assigné à mis à Frédéric Péters
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a plus d'un an
- Fichier 0001-workflows-ignore-trigger-jumps-to-undefined-invalid-.patch 0001-workflows-ignore-trigger-jumps-to-undefined-invalid-.patch ajouté
- Statut changé de En cours à Solution proposée
Mis à jour par Thomas Noël il y a plus d'un an
- Statut changé de Solution proposée à Solution validée
Pas trop fan de l'erreur 400, la requête est bonne, c'est son exécution qui ne se fait pas... On aurait moyen de retourner autre chose, quitte à ce que ça soit une "418 I'm a teapot" ?
Et si non, alors go avec ça, ça reste un peu anecdotique.
Mis à jour par Frédéric Péters il y a plus d'un an
- Statut changé de Solution validée à Résolu (à déployer)
À la base je laissais tourner pour arriver sur la 404 et j'ai trouvé ça pas trop et tenté la 400, sans grande idée.
J'ai envoyé ainsi et je n'aurai aucune préoccupation sur la compatibilité avec l'existant s'il s'agit plus tard de modifier ce retour d'erreur.
commit 6728b565857746dc499db9a689103bc6593762a7 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Oct 21 14:58:33 2022 +0200 workflows: ignore trigger jumps to undefined/invalid status (#70079)
Mis à jour par Transition automatique il y a plus d'un an
- Statut changé de Résolu (à déployer) à Solution déployée
workflows: ignore trigger jumps to undefined/invalid status (#70079)