Project

General

Profile

Anomalie #7834

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

Added by Joël Cuissinat over 9 years ago. Updated over 9 years ago.

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

100%

Estimated time:
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)

Related issues

Related to eoleflask-aaa - Anomalie #7448: Erreur de connexion à genconfig après un redémarrage du service eoleflask Fermé 07/04/2014
Duplicates eoleflask-aaa - Anomalie #7821: Plantage lors d’une erreur d’authentification Fermé 04/01/2014 04/04/2014

Associated revisions

Revision 726b6ee1 (diff)
Added by Emmanuel GARETTE over 9 years ago

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

History

#1 Updated by Emmanuel GARETTE over 9 years ago

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

#2 Updated by Joël Cuissinat over 9 years ago

  • Status changed from Résolu to Fermé
  • Assigned To set to Emmanuel GARETTE

Désormais, on obtient le message :

L'authentification locale (PAM) a échoué

Also available in: Atom PDF