Bug #18044
api ics: erreur d'encodage du titre de formulaire lors de la serialization
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
17 août 2017
Echéance:
% réalisé:
100%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Arrivé sur la plateforme de démo.
J'ai tenté de récuperer les .ics du formulaire de prise de rendez-vous (https://demarches-publik.entrouvert.com/backoffice/management/prise-de-rendez-vous-passeport/) en me basant sur le champ de traitement date_rendezvous
: https://demarches-publik.entrouvert.com/api/forms/prise-de-rendez-vous-passeport/ics/date_rendezvous
Trace:
Exception: type = '<type 'exceptions.UnicodeDecodeError'>', value = ''ascii' codec can't decode byte 0xc2 in position 35: ordinal not in range(128)' Stack trace (most recent call first): File "/usr/lib/python2.7/codecs.py", line 351, in write 349 """ Writes the object's contents encoded to self.stream. 350 """ > 351 data, consumed = self.encode(object, self.errors) 352 self.stream.write(data) 353 locals: self = <cStringIO.StringO object at 0x7fa0bff7f8f0> object = ':Prise de rendez-vous passeport - n\xc2\xb0233-17' File "/usr/lib/pymodules/python2.7/vobject/base.py", line 962, in defaultSerialize 960 paramvals = obj.params[key] 961 s.write(';' + key + '=' + ','.join(dquoteEscape(p) for p in paramvals)) > 962 s.write(':' + obj.value) 963 if obj.behavior and not startedEncoded: obj.behavior.decode(obj) 964 foldOneLine(outbuf, s.getvalue(), lineLength)
Fichiers
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a plus de 6 ans
- Fichier 0001-management-decode-ics-summary-fixes-18044.patch 0001-management-decode-ics-summary-fixes-18044.patch ajouté
- Patch proposed changé de Non à Oui
Mis à jour par Benjamin Dauvergne il y a plus de 6 ans
Je n'arrive plus à lancer les tests avec la migration Django, j'ouvre un autre ticket pour ça.
Mis à jour par Benjamin Dauvergne il y a plus de 6 ans
- Fichier 0001-management-decode-ics-summary-fixes-18044.patch 0001-management-decode-ics-summary-fixes-18044.patch ajouté
Ajout d'un test (lancé aussi :) ).
Mis à jour par Benjamin Dauvergne il y a plus de 6 ans
- Statut changé de Nouveau à Résolu (à déployer)
- % réalisé changé de 0 à 100
Appliqué par commit 8d16ae49fa986115f3fb80f38e386c4cce5b6b17.
Mis à jour par Frédéric Péters il y a plus de 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
management: decode ics summary (fixes #18044)