Projet

Général

Profil

Bug #69308

Action sendmail, mailtemplate avec un body vide (AttributeError: 'NoneType' object has no attribute 'startswith')

Ajouté par Sentry Io il y a plus d'un an. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
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

Révision 21a14e29 (diff)
Ajouté par Frédéric Péters il y a plus d'un an

misc: skip sending empty mail template (#69308)

Historique

#1

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')
#2

Mis à jour par Frédéric Péters il y a plus d'un an

#3

Mis à jour par Lauréline Guérin il y a plus d'un an

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

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

Mis à jour par Transition automatique il y a plus d'un an

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

Mis à jour par Transition automatique il y a plus d'un an

Automatic expiration

Formats disponibles : Atom PDF