Projet

Général

Profil

Bug #10786

désérialisation fichier/json

Ajouté par Frédéric Péters il y a presque 8 ans. Mis à jour il y a presque 8 ans.

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

Révision 334a4d3b (diff)
Ajouté par Frédéric Péters il y a presque 8 ans

misc: handle None when unserializing file field from json (#10786)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 8 ans

#2

Mis à jour par Thomas Noël il y a presque 8 ans

Ack

#3

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

Mis à jour par Thomas Noël il y a presque 8 ans

  • Version cible mis à v1.42
#5

Mis à jour par Frédéric Péters il y a presque 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF