Projet

Général

Profil

Anomalie #6930

pas de vérification de l'existence du fichier eol dans creole_loader

Ajouté par Bruno Boiget il y a plus de 10 ans. Mis à jour il y a environ 10 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Gwenael Remond
Catégorie:
-
Début:
Echéance:
03/01/2014
% réalisé:

100%

Temps passé:
Distribution:
EOLE 2.4

Description

si spécifié dans creole_loader (force_config), le fichier par défaut est utilisé si le fichier donné n'existe pas

Révisions associées

Révision 2b799fb7 (diff)
Ajouté par Gwenael Remond il y a environ 10 ans

existence du fichier eol dans creole_loader, fixes #6930

Révision d1a522a7 (diff)
Ajouté par Joël Cuissinat il y a environ 10 ans

force_configeol peut être à None (Fixes #6930 @15m)

Historique

#1 Mis à jour par Gwenael Remond il y a environ 10 ans

  • Statut changé de Nouveau à Résolu
  • % réalisé changé de 0 à 100

#2 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Statut changé de Résolu à À valider
  • % réalisé changé de 100 à 50

Mal corrigé !

creoled - Unable to load creole configuration: coercing to Unicode: need string or buffer, NoneType found
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/creole/server.py", line 151, in reload_config
    disable_mandatory=True, owner='creoled')
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 178, in creole_loader
    if not isfile(force_configeol):
  File "/usr/lib/python2.7/genericpath.py", line 29, in isfile
    st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found

#3 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Statut changé de À valider à Résolu
  • % réalisé changé de 50 à 100

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

  • Echéance mis à 03/01/2014
  • Statut changé de Résolu à Fermé
>>> from creole.loader import creole_loader
>>> loader = creole_loader(force_configeol='/tmp/toto.eol')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 181, in creole_loader
    force_configeol))
creole.error.ConfigError: fichier config eol inexistant : /tmp/toto.eol

Formats disponibles : Atom PDF