Projet

Général

Profil

Tâche #15499

Tiramisu - Scénario #15349: Test de Tiramisu 2

Erreur de type sur le "owner" si on importe une configuration

Ajouté par Joël Cuissinat il y a environ 8 ans. Mis à jour il y a environ 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
16/03/2016
Echéance:
% réalisé:

100%

Temps estimé:
1.00 h
Temps passé:
Restant à faire (heures):
0.0

Description

Sur Eolebase 2.6 :

./mount.eole-ci-tests
cp /mnt/eole-ci-tests/configuration/aca.eolebase/default-2.5.2/etc/eole/config.eol /tmp/
gen_config

Fichier -> Importer -> /tmp/config.eol
2016-03-16 11:02:41,559: eolegenconfig - owner must be a string for creole.general.numero_etab
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/webapi.py", line 330, in upload_config
    lib.load_config(id_, config_file, force_instanciate=False)
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 281, in load_config
    force_instanciate=force_instanciate)
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 176, in get_config
    force_instanciate=force_instanciate)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 417, in creole_loader
    force_instanciate=force_instanciate)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 283, in load_config_eol
    force_instanciate=force_instanciate)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 602, in config_load_values
    force_load_owner=force_load_owner)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 556, in config_load_store
    raise Exception(_('owner must be a string for {}').format(path))
Exception: owner must be a string for creole.general.numero_etab

La ligne en cause dans loader.py est :

if not isinstance(owner, dict):

Le contournement suivant semble fonctionner :

if not (isinstance(owner, unicode) or isinstance(owner, str)):

Révisions associées

Révision 1c64879e (diff)
Ajouté par Emmanuel GARETTE il y a environ 8 ans

le 'owner' de l'import doit être en unicode (ref #15499 @1h)

Historique

#1 Mis à jour par Joël Cuissinat il y a environ 8 ans

  • Description mis à jour (diff)

#2 Mis à jour par Emmanuel GARETTE il y a environ 8 ans

  • Assigné à mis à Emmanuel GARETTE
  • % réalisé changé de 0 à 100
  • Restant à faire (heures) changé de 1.0 à 0.25

#3 Mis à jour par Emmanuel GARETTE il y a environ 8 ans

  • Statut changé de Nouveau à En cours

#4 Mis à jour par Joël Cuissinat il y a environ 8 ans

  • Statut changé de En cours à Résolu
  • Restant à faire (heures) changé de 0.25 à 0.0

OK avec les paquets creole 2.6.0-7

#5 Mis à jour par Joël Cuissinat il y a environ 8 ans

  • Statut changé de Résolu à En cours

#6 Mis à jour par Scrum Master il y a environ 8 ans

  • Statut changé de En cours à Résolu

#7 Mis à jour par Scrum Master il y a environ 8 ans

  • Statut changé de Résolu à Fermé

Formats disponibles : Atom PDF