Projet

Général

Profil

Anomalie #7821

Plantage lors d’une erreur d’authentification

Ajouté par Daniel Dehennin il y a environ 10 ans. Mis à jour il y a environ 10 ans.

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

100%

Distribution:
EOLE 2.4

Description

Une erreur de saisie de mot de passe dans eole-genconfig donne une erreur 500.

Voici les logs :

root@scribe:~# cat /var/log/eoleflask/eolegenconfig.log 
2014-04-01 10:30:00,553: eolegenconfig - Authentication failed for user root
2014-04-01 10:30:00,559: eolegenconfig - Exception on /login [POST]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1504, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1264, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1262, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1248, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/authclient.py", line 101, in login
    return client.authenticate()
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/client.py", line 63, in authenticate
    return self._authenticate()
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/plugins/zephir_pam.py", line 80, in _authenticate
    zephir_server_id=self.server_id)
  File "/usr/lib/python2.7/dist-packages/flask/templating.py", line 123, in render_template
    context, ctx.app)
  File "/usr/lib/python2.7/dist-packages/flask/templating.py", line 107, in _render
    rv = template.render(context)
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/share/eole/flask/genconfig/templates/login.html", line 46, in top-level template code
    {{ message }}
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 34: ordinal not in range(128)

Demandes liées

Lié à eoleflask-aaa - Anomalie #7448: Erreur de connexion à genconfig après un redémarrage du service eoleflask Fermé 04/07/2014
Dupliqué par eole-genconfig - Anomalie #7834: "Internal Server Error" en cas d'erreur d'authenfication Fermé 04/04/2014

Révisions associées

Révision 726b6ee1 (diff)
Ajouté par Emmanuel GARETTE il y a environ 10 ans

les messages d'erreurs doivent être en unicode (fixes #7834) (fixes #7821)

Historique

#1 Mis à jour par Emmanuel GARETTE 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

  • Echéance mis à 04/04/2014
  • Assigné à mis à Emmanuel GARETTE
  • Version cible mis à Eole 2.4-RC3

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

  • Statut changé de Résolu à Fermé

OK :

L'authentification locale (PAM) a échoué

Formats disponibles : Atom PDF