Bug #13724
ajouter une validation au champ "expiration" du déclencheur d'action globale
Début:
24 octobre 2016
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
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>
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 7 ans
- Fichier 0001-admin-only-allow-digits-in-workflow-global-trigger-t.patch 0001-admin-only-allow-digits-in-workflow-global-trigger-t.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 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)
admin: only allow digits in workflow global trigger timeout (#13724)