Project

General

Profile

Anomalie #7904

Erreur de validation des variables obligatoires

Added by Daniel Dehennin about 7 years ago. Updated almost 7 years ago.

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

100%

Spent time:
Distribution:
EOLE 2.4

Description

Pour reproduire :

  1. Lancer gen_config
  2. Ne saisir aucune valeur
  3. Cliquer fichier->enregistrer

Cela produit le message :

Erreur - 500 - INTERNAL SERVER ERROR
Option service_restrictions inconnue pour l'OptionDescription creole

Les logs /var/log/eoleflask/eolegenconfig.log :

2014-04-08 12:23:46,201: eolegenconfig - Option service_restrictions inconnue pour l'OptionDescription creole
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/views.py", line 273, in validate_config
    ret = lib.valid_mandatory(id_, zephir_sync=zephir_sync)
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 613, in valid_mandatory
    ret.append(get_variable_from_path(id_, path))
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 585, in get_variable_from_path
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 313, in get_variable
    option = config.unwrap_from_path(path, force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 524, in unwrap_from_path
    path, force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 72, in cfgimpl_get_home_by_path
    force_properties=force_properties)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 240, in getattr
    opt_or_descr = getattr(self.cfgimpl_get_description(), name)
  File "/usr/lib/python2.7/dist-packages/tiramisu/option.py", line 1199, in __getattr__
    '').format(name, self._name))
AttributeError: Option service_restrictions inconnue pour l'OptionDescription creole

Associated revisions

Revision 6aee16c6 (diff)
Added by Daniel Dehennin about 7 years ago

Erreur de validation des variables obligatoires

  • src/eolegenconfig/lib.py (valid_mandatory): Ne valider que les
    variables faisant partie de « creole ».

Fixes: #7904 @45m

History

#1 Updated by Daniel Dehennin about 7 years ago

  • Due date set to 04/18/2014
  • Assigned To set to Daniel Dehennin
  • Priority changed from Normal to Haut
  • Target version set to Eole 2.4 Stable

#2 Updated by Daniel Dehennin about 7 years ago

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

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

  • Status changed from Résolu to Fermé

Bug non reproduit.

Also available in: Atom PDF