Development #41451
accepter LazyFieldVar de type fichier comme pièce jointe
Début:
08 avril 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'ValueError'>', value = 'invalid data for file type (<wcs.variables.LazyFieldVar object at 0x7f3aa82d5d30>)' Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/fields.py", line 1105, in convert_value_from_anything 1103 upload.receive([force_bytes(value['content'])]) 1104 return upload > 1105 raise ValueError('invalid data for file type (%r)' % value) 1106 1107 def get_view_short_value(self, value, max_len=30): locals: cls = <class 'wcs.fields.FileField'> value = <wcs.variables.LazyFieldVar object at 0x7f3aa82d5d30> File "/usr/lib/python3/dist-packages/wcs/workflows.py", line 2093, in convert_attachments_to_uploads 2091 except ValueError: 2092 get_publisher().notify_of_exception(sys.exc_info(), > 2093 context='[workflow/attachments]') 2094 continue 2095 locals: attachment = 'form_var.fichier_diffusion' File "/usr/lib/python3/dist-packages/wcs/workflows.py", line 2603, in perform 2601 email_from = self.compute(self.custom_from) 2602 > 2603 attachments = self.convert_attachments_to_uploads() 2604 2605 if len(addresses) > 1:
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a presque 4 ans
- Fichier 0001-misc-allow-lazy-fields-to-be-used-for-attachments-41.patch 0001-misc-allow-lazy-fields-to-be-used-for-attachments-41.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Nicolas Roche (absent jusqu'au 3 avril) il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
(le test reproduit la trace, le code est couvert)
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit c7aa3658c69bfa3c17c04972a86f9232ccfdbc0a Author: Frédéric Péters <fpeters@entrouvert.com> Date: Wed Apr 8 13:43:21 2020 +0200 misc: allow lazy fields to be used for attachments (#41451)
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: allow lazy fields to be used for attachments (#41451)