Bug #13815
Conditions de sortie de page incomplètes
Début:
01 novembre 2016
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Ça donne une trace à l'export mais avant tout, ça ne devrait pas être autorisé.
Exception: type = '<type 'exceptions.TypeError'>', value = 'coercing to Unicode: need string or buffer, NoneType found' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/fields.py", line 1445, in post_conditions_export_to_xml 1443 post_condition['condition'], charset, 'replace') 1444 ET.SubElement(condition_node, 'error_message').text = unicode( > 1445 post_condition['error_message'], charset, 'replace') 1446 1447 def fill_admin_form(self, form): locals: node = <Element 'field' at 0x7f49e962f2d0> post_condition = {'error_message': None, 'condition': 'form_var_Permis == "Oui"'} self = <wcs.fields.PageField object at 0x4af06d0> charset = 'utf-8' condition_node = <Element 'post_condition' at 0x7f49e962fc10> conditions_node = <Element 'post_conditions' at 0x7f49e8c8f3d0> include_id = True ...
Fichiers
Révisions associées
fields: don't crash exporting incomplete post-condition (#13815)
Historique
Mis à jour par Frédéric Péters il y a plus de 7 ans
- Fichier 0002-fields-don-t-crash-exporting-incomplete-post-conditi.patch 0002-fields-don-t-crash-exporting-incomplete-post-conditi.patch ajouté
- Fichier 0001-admin-require-both-condition-and-error-message-in-po.patch 0001-admin-require-both-condition-and-error-message-in-po.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 plus de 7 ans
- Statut changé de En cours à Résolu (à déployer)
commit db808c847d733ce2ec4b0a0531662929e1a0de4b Author: Frédéric Péters <fpeters@entrouvert.com> Date: Tue Nov 1 15:50:47 2016 +0100 fields: don't crash exporting incomplete post-condition (#13815) commit 0de7b496473948a2a43ccf633923846904f4551e Author: Frédéric Péters <fpeters@entrouvert.com> Date: Tue Nov 1 15:48:01 2016 +0100 admin: require both condition and error message in post conditions (#13815)
admin: require both condition and error message in post conditions (#13815)