Bug #5907
Ne pas permettre les workflows sans aucun statut (?)
Début:
07 novembre 2014
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Description
D'une trace récente :
Exception: type = '<type 'exceptions.IndexError'>', value = 'list index out of range' Stack trace (most recent call first): File "/usr/lib/python2.6/site-packages/wcs/formdata.py", line 191, in just_created 189 def just_created(self): 190 self.receipt_time = time.localtime() > 191 self.status = 'wf-%s' % self.formdef.workflow.possible_status[0].id 192 # we add the initial status to the history, this makes it more readable 193 # afterwards (also this gets the (previous_status) code to work in all
Doit-on faire quelque chose pour éviter qu'un workflow ne disposant d'aucun statut ne soit assigné à un formulaire ?
(je me dis que non et serais pour cette situation d'attraper l'exception et d'afficher une page d'erreur informant d'un problème de configuration)
Révisions associées
backoffice: do not allow selecting a workflow without any status (#5907)
trivial: assert before crashing if a workflow with no status is used (#5907)
Historique
Mis à jour par Robot Gitea il y a 9 mois
- Statut changé de Nouveau à En cours
- Assigné à mis à Frédéric Péters
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/476
- Titre : WIP: empêcher une démarche avec workflow sans statut (#5907)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/476/files
Mis à jour par Robot Gitea il y a 9 mois
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 9 mois
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/476
- Titre : empêcher une démarche avec workflow sans statut (#5907)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/476/files
Mis à jour par Transition automatique il y a 9 mois
- Statut changé de Résolu (à déployer) à Solution déployée
backoffice: do not allow removing single status (#5907)