Project

General

Profile

Actions

Bug #13724

closed

ajouter une validation au champ "expiration" du déclencheur d'action globale

Added by Frédéric Péters over 9 years ago. Updated about 9 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
Start date:
24 October 2016
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

Il est noté sous le champ "Nombre de jours [...]" mais des personnes se trouvent malgré tout à essayer d'y écrire "30 jours".

Ce qui produit derrière cette erreur :

Exception:
  type = '<type 'exceptions.ValueError'>', value = 'invalid literal for int() with base 10: '30 jours''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/workflows.py", line 1100, in must_trigger
  1098             return False
  1099
> 1100         anchor_date = anchor_date + datetime.timedelta(days=int(self.timeout))
  1101
  1102         return bool(datetime.datetime.now() > anchor_date)

  locals:
     anchor_date = datetime.datetime(2016, 10, 24, 15, 7, 35)
     formdata = <Votre-Demande-Aupres-Du-Service-Proximite id:2>
     self = <wcs.workflows.WorkflowGlobalActionTimeoutTrigger object at 0x2e2fb50>

Files

Actions #1

Updated by Frédéric Péters over 9 years ago

  • Description updated (diff)
Actions #2

Updated by Frédéric Péters over 9 years ago

Actions #3

Updated by Thomas Noël over 9 years ago

Ack

Actions #4

Updated by Frédéric Péters over 9 years ago

  • Status changed from En cours to Résolu (à déployer)
commit 273c68d53e542c834f2fa90632bfd0132bbc2677
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Oct 24 21:11:42 2016 +0200

    admin: only allow digits in workflow global trigger timeout (#13724)
Actions #6

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

  • Target version set to v1.62
Actions #7

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

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

Also available in: Atom PDF