Project

General

Profile

Bug #9456

crash sur import workflow avec jump sans timeout

Added by Thomas Noël about 6 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
Target version:
Start date:
30 Dec 2015
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

Un workflow avec une action de saut automatique, sans timeout, on remarque que timeout='' ce qui s'exporte sous forme <timeout/> dans le XML.

Et lors de l'import, on a donc ce crash:

Exception:
  type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute
'encode''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/wf/jump.py", line 110, in timeout_init_with_x
ml
   108             self.timeout = None
   109         else:
>  110             timeout = elem.text.encode(charset)
   111             if timeout.startswith('='):
   112                 self.timeout = timeout

  locals:
     self = <wcs.wf.jump.JumpWorkflowStatusItem object at 0x3deb090>
     charset = 'utf-8'
     elem = <Element 'timeout' at 0x4fb9dd0>
     include_id = False

Files

Associated revisions

Revision c8178f91 (diff)
Added by Thomas Noël about 6 years ago

wf/jump: handle empty timeout in xml import (#9456)

History

#1

Updated by Thomas Noël about 6 years ago

#2

Updated by Benjamin Dauvergne about 6 years ago

Ack.

#3

Updated by Thomas Noël about 6 years ago

  • Status changed from En cours to Résolu (à déployer)
commit c8178f914c5f0926d8af9b50f41299129e7048e5
Author: Thomas NOEL <tnoel@entrouvert.com>
Date:   Wed Dec 30 15:52:53 2015 +0100

    wf/jump: handle empty timeout in xml import (#9456)

#4

Updated by Frédéric Péters about 6 years ago

  • Target version set to v1.26
#5

Updated by Thomas Noël about 6 years ago

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

Also available in: Atom PDF