Bug #47174
action "fichier", type = '<class 'AttributeError'>', value = ''NoneType' object has no attribute 'get''
Début:
30 septembre 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'AttributeError'>', value = ''NoneType' object has no attribute 'get'' Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/wf/attachment.py", line 117, in fill_form 115 else: 116 title = None > 117 file_type = self.document_type.get('mimetypes') 118 form.add(FileWithPreviewWidget, 'attachment%s' % self.id, title=title, 119 required=self.required, hint=self.hint, file_type=file_type, locals: form = <wcs.qommon.form.Form object at 0x7f35cdf01320> self = <AddAttachmentWorkflowStatusItem 2>
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Assigné à changé de Frédéric Péters à Emmanuel Cazenave
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Assigné à changé de Emmanuel Cazenave à Frédéric Péters
Je vais le faire, trop de traces.
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Fichier 0001-workflows-don-t-crash-using-existing-file-attachment.patch 0001-workflows-don-t-crash-using-existing-file-attachment.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Le patch minimal; mes soupirs sur ce code distribués dans d'autres tickets.
Mis à jour par Emmanuel Cazenave il y a plus de 3 ans
- Statut changé de Solution proposée à Solution validée
J'avais annoncé la couleur (#37860#note-7).
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
Yep de ce commentaire j'ai pris "it works" et pressé pour intégrer ça j'ai validé sans tester...
commit 7eef27ddf5d780d7a53191c14ae7b8025a0db0e1 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Wed Sep 30 13:45:02 2020 +0200 workflows: don't crash using existing file attachment actions (#47174)
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
workflows: don't crash using existing file attachment actions (#47174)