Project

General

Profile

Anomalie #7848

Erreur 500 si on supprime un élément d'une master experte en mode normal

Added by Joël Cuissinat about 7 years ago. Updated almost 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
Due date:
04/18/2014
% Done:

100%

Estimated time:
2.00 h
Distribution:
EOLE 2.4

Description

Sur Amon, dans la famille experte Squid, j'ai déclaré un second "cache_dir" (Emplacement du cache).

Si je reviens en mode normal, je ne vois que les deux "master" que j'ai modifié et si je veux supprimer la deuxième occurence, j'obtiens :
Erreur - 500 - INTERNAL SERVER ERROR

et :

# tail -f /var/log/eoleflask/eolegenconfig.log
2014-04-03 10:43:39,484: eolegenconfig - ('master_name and variable_name must have same value', 'not None and cache_dir')
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/views.py", line 203, in remove_value
    lib.pop_value(lib.get_id(), category_name, master_name, variable_name, index)
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 499, in pop_value
    'not {} and {}'.format(master_name, variable_name))
ValueError: ('master_name and variable_name must have same value', 'not None and cache_dir')

Associated revisions

Revision 9a930211 (diff)
Added by Ghislain Loaec about 7 years ago

Finish incomplete refactoring (masterid -> groupid) - Fixes: #7848

History

#1 Updated by Emmanuel GARETTE about 7 years ago

  • Target version changed from Eole 2.4-RC3 to Eole 2.4 Stable

Autre soucis lié, on ne voit les masters en mode normal que quand on recharge le fichier.

#2 Updated by Joël Cuissinat about 7 years ago

  • Due date changed from 04/04/2014 to 04/18/2014

#3 Updated by Ghislain Loaec about 7 years ago

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

#4 Updated by Joël Cuissinat almost 7 years ago

  • Assigned To set to Ghislain Loaec

#5 Updated by Joël Cuissinat almost 7 years ago

  • Status changed from Résolu to Fermé

La manipulation décrite fonctionne.
Après il y a encore moyen de planter gen_config (ex : re-demander la valeur par défaut de la master en mode normal) mais il faut être vicieux !

Also available in: Atom PDF