Project

General

Profile

Anomalie #3561

Boucle infini dans la gestion des groupes de conteneur

Added by Emmanuel GARETTE almost 11 years ago. Updated almost 11 years ago.

Status:
Fermé
Priority:
Haut
Assigned To:
Category:
-
Start date:
06/03/2012
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:
Distribution:
EOLE 2.3

Description

C'est un cas un peut tordu ... mais jusqu'à maintenant ejabberd était installé dans la conteneur "jabber".

Suite à la mise à jour candidat, il est installé dans le conteneur "reseau". J'ai donc remis, avec un dictionnaire personnalisé, dans le conteneur "jabber".

J'ai donc : <conteneur name="jabber" group="jabber"/>

Ce qui provoque une boucle infinie.

Voici un patch :

--- /tmp/cfgparser.py    2012-06-03 14:37:21.000000000 +0200
+++ /usr/share/pyshared/creole/cfgparser.py    2012-06-03 19:13:51.000000000 +0200
@@ -616,7 +616,8 @@
         self.log.info('===========================================')

     def get_container_name(self, name, tcontainer):
-        if tcontainer[name].has_key('group'):
+        if tcontainer[name].has_key('group') and \
+                    tcontainer[name]['group'] != name:
             cname = self.get_container_name(tcontainer[name]['group'], tcontainer)
         else:
             cname = name

Related issues

Precedes Documentations - Tâche #3644: Parler des groupes de conteneurs Fermé 06/15/2012

Associated revisions

Revision 8f4220dd (diff)
Added by Joël Cuissinat almost 11 years ago

Correction boucle infinie possible dans get_container_name
  • cfgparser.py : application du patch
    Fixes #3561 @10m

History

#1 Updated by Joël Cuissinat almost 11 years ago

  • Assigned To set to Joël Cuissinat
  • Estimated time set to 0.50 h

#2 Updated by Joël Cuissinat almost 11 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#3 Updated by Bruno Boiget almost 11 years ago

  • Status changed from Résolu to Fermé

testé sur 2.3.5 RC avec dico supplémentaire (conteneur jabber / groupe jabber)

Also available in: Atom PDF