Projet

Général

Profil

Bug #47174

action "fichier", type = '<class 'AttributeError'>', value = ''NoneType' object has no attribute 'get''

Ajouté par Frédéric Péters il y a plus de 3 ans. Mis à jour il y a plus de 3 ans.

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

Révision 7eef27dd (diff)
Ajouté par Frédéric Péters il y a plus de 3 ans

workflows: don't crash using existing file attachment actions (#47174)

Historique

#1

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
#3

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.

#4

Mis à jour par Frédéric Péters il y a plus de 3 ans

Le patch minimal; mes soupirs sur ce code distribués dans d'autres tickets.

#5

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).

#6

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

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

Formats disponibles : Atom PDF