Bug #69308
Action sendmail, mailtemplate avec un body vide (AttributeError: 'NoneType' object has no attribute 'startswith')
Début:
20 septembre 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/94155/
AttributeError: 'NoneType' object has no attribute 'startswith' (17 additional frame(s) were not displayed) ... File "wcs/formdata.py", line 749, in handle_workflow_form return wf_status.handle_form(form, self, user) File "wcs/workflows.py", line 1922, in handle_form url = filled.perform_global_action(action.id, user, event_name='global-action-button') File "wcs/formdata.py", line 669, in perform_global_action return perform_items(action.items, self, event=(event_name, action.id), global_action=True) File "wcs/workflows.py", line 94, in perform_items url = item.perform(formdata) or url File "wcs/wf/sendmail.py", line 250, in perform formdata, self.compute(body, render=False), autoescape=body.startswith('<')
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 'startswith' à Action sendmail, mailtemplate avec un body vide (AttributeError: 'NoneType' object has no attribute 'startswith')
Mis à jour par Frédéric Péters il y a plus d'un an
- Fichier 0001-misc-skip-sending-empty-mail-template-69308.patch 0001-misc-skip-sending-empty-mail-template-69308.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 Lauréline Guérin il y a plus d'un an
- Statut changé de Solution proposée à Solution validée
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)
commit 21a14e298ae6f9be4d76ae0747a03c431e545e07 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Sun Sep 25 14:15:33 2022 +0200 misc: skip sending empty mail template (#69308)
Mis à jour par Transition automatique il y a plus d'un an
- Statut changé de Résolu (à déployer) à Solution déployée
misc: skip sending empty mail template (#69308)