Tâche #21423
Scénario #21165: Traitement express MEN (37-39)
Creole doit remonter le nom du conteneur qui ne dispose pas d’identifiant
Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Remaining (hours):
0.0
Description
Exigence¶
ALL-FO-003b
- Les journaux doivent être clairs.
Problème¶
Si un dictionnaire défini un conteneur sans attribut id
alors creole retourne un message d’erreur sans le nom dudit conteneur.
Avec le dictionnaire local suivant :
<creole>
<files />
<containers>
<container name='bidule' />
</containers>
<variables />
<constraints />
<help />
</creole>
L’exécution de creoled --debug
affiche :
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/creole/server.py", line 190, in reload_config try_upgrade=False) File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 760, in creole_loader eolobj.space_visitor() File "/usr/lib/python2.7/dist-packages/creole/objspace.py", line 453, in space_visitor ContainerAnnotator(self.space, self.paths, self) File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 191, in __init__ self.generate_containers() File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 374, in generate_containers self._generate_containers(variables) File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 417, in _generate_containers group_id = containers[group_name].id AttributeError: 'Container' object has no attribute 'id'
Critères d’acceptation¶
Associated revisions
les conteneurs doivent avoir une ID et ne pas avoir le même ID pour plusieurs conteneurs (ref #21423)
Update translation
Ref: #21423
History
#1 Updated by Daniel Dehennin over 5 years ago
- Description updated (diff)
#2 Updated by Emmanuel GARETTE over 5 years ago
- Estimated time set to 1.00 h
- Parent task set to #21165
#3 Updated by Emmanuel GARETTE over 5 years ago
- Status changed from Nouveau to En cours
- Assigned To set to Emmanuel GARETTE
- Start date set to 09/22/2017
- Remaining (hours) set to 0.5
Reste a traduire.
#4 Updated by Joël Cuissinat over 5 years ago
- Remaining (hours) changed from 0.5 to 0.25
#5 Updated by Emmanuel GARETTE over 5 years ago
- % Done changed from 0 to 100
#6 Updated by Scrum Master over 5 years ago
- Project changed from creole to Distribution EOLE
- Status changed from En cours to Résolu
#7 Updated by Daniel Dehennin over 5 years ago
- Remaining (hours) changed from 0.25 to 0.0
#8 Updated by Daniel Dehennin over 5 years ago
Dans gen_config j’obtiens bien le message suivant :
Erreur - 500 - INTERNAL SERVER ERROR l'attribut "id" est manquant pour le conteneur "bidule"
#9 Updated by Daniel Dehennin over 5 years ago
- Status changed from Résolu to Fermé