Project

General

Profile

Bug #10786

désérialisation fichier/json

Added by Frédéric Péters almost 5 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Target version:
Start date:
02 May 2016
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
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

Files

Associated revisions

Revision 334a4d3b (diff)
Added by Frédéric Péters almost 5 years ago

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

History

#1

Updated by Frédéric Péters almost 5 years ago

#2

Updated by Thomas Noël almost 5 years ago

Ack

#3

Updated by Frédéric Péters almost 5 years ago

  • Status changed from En cours to 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

Updated by Thomas Noël almost 5 years ago

  • Target version set to v1.42
#5

Updated by Frédéric Péters over 4 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF