Projet

Général

Profil

Anomalie #7834

"Internal Server Error" en cas d'erreur d'authenfication

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

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

100%

Temps estimé:
1.50 h
Distribution:
EOLE 2.4

Description

Suite aux dernières modifications, la saisie d'un couple login/mot de passe invalide (ou vide pour le mot de passe) fait apparaitre la page suivante :

Internal Server Error

The server encountered an internal error and was unable to complete your request. 
Either the server is overloaded or there is an error in the application.

# tail -f /var/log/eoleflask/eolegenconfig.log
2014-04-02 11:27:06,267: eolegenconfig - Authentication failed for user root
2014-04-02 11:27:06,268: 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
Duplique eoleflask-aaa - Anomalie #7821: Plantage lors d’une erreur d’authentification Fermé 01/04/2014 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

  • Statut changé de Résolu à Fermé
  • Assigné à mis à Emmanuel GARETTE

Désormais, on obtient le message :

L'authentification locale (PAM) a échoué

Formats disponibles : Atom PDF