Bug #13815
Conditions de sortie de page incomplètes
Start date:
01 November 2016
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
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 ...
Files
Associated revisions
fields: don't crash exporting incomplete post-condition (#13815)
History
Updated by Frédéric Péters almost 7 years ago
- File 0002-fields-don-t-crash-exporting-incomplete-post-conditi.patch 0002-fields-don-t-crash-exporting-incomplete-post-conditi.patch added
- File 0001-admin-require-both-condition-and-error-message-in-po.patch 0001-admin-require-both-condition-and-error-message-in-po.patch added
- Status changed from Nouveau to En cours
- Patch proposed changed from No to Yes
Updated by Frédéric Péters almost 7 years ago
- Status changed from En cours to 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)