Bug #16510
Crash sur génération de document
Statut:
Fermé
Priorité:
Immediat
Assigné à:
-
Version cible:
-
Début:
26 mai 2017
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Noté en prod à l'instant.
Exception: type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'startswith'' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/wf/export_to_model.py", line 431, in process_root 429 if node.tag == DRAW_FRAME: 430 name = node.attrib.get(DRAW_NAME) > 431 if not name.startswith('='): 432 continue 433 # variable image locals: node = <Element '{urn:oasis:names:tc:opendocument:xmlns:drawing:1.0}frame' at 0x7f9e6454f110> attr = 'tail' user_field_values = {} self = <wcs.wf.export_to_model.ExportToModel object at 0x7f9dfc83a510> process_text = <function process_text at 0x7f9e6e924140> new_images = {} got_blank_lines = False root = <Element '{urn:oasis:names:tc:opendocument:xmlns:office:1.0}document-content' at 0x7f9e6e715dd0> formdata = <Demande-D-Autorisation-De-Stationnement-Pour-Un-Demenagement-Realise-Par-Un-Particulier "Demande d'autorisation de stationnemen t pour un d\xc3\xa9m\xc3\xa9nagement r\xc3\xa9alis\xc3\xa9 par un particulier - n\xc2\xb0110-1228" id:1228> name = None
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a presque 7 ans
- if not name.startswith('='): + if not (name and name.startswith('=')):
posé sur la prod.
Mis à jour par Frédéric Péters il y a presque 7 ans
- Fichier 0001-workflow-don-t-fail-odt-creation-on-draw-frame-missi.patch 0001-workflow-don-t-fail-odt-creation-on-draw-frame-missi.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 presque 7 ans
- Statut changé de En cours à Résolu (à déployer)
commit 8310df8b67389b38e0abbd845e1e9b688f7f113b Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri May 26 07:51:42 2017 +0200 workflow: don't fail odt creation on draw:frame missing a name (#16510)
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
workflow: don't fail odt creation on draw:frame missing a name (#16510)