Bug #10786
désérialisation fichier/json
Début:
02 mai 2016
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Exception: type = '<type 'exceptions.TypeError'>', value = 'argument of type 'NoneType' is not iterable' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/fields.py", line 792, in from_json_value 790 791 def from_json_value(self, value): > 792 if 'filename' in value and 'content' in value: 793 content = base64.b64decode(value['content']) 794 content_type = value.get('content_type', 'application/octet-stream') locals: self = <wcs.fields.FileField object at 0x3d3f5d0> value = None
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a presque 8 ans
- Fichier 0001-misc-handle-None-when-unserializing-file-field-from-.patch 0001-misc-handle-None-when-unserializing-file-field-from-.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a presque 8 ans
- Statut changé de En cours à Résolu (à déployer)
commit 334a4d3b34c948ef2580143d9e8cfe69f427507d Author: Frédéric Péters <fpeters@entrouvert.com> Date: Mon May 2 09:24:18 2016 +0200 misc: handle None when unserializing file field from json (#10786)
misc: handle None when unserializing file field from json (#10786)