Project

General

Profile

Anomalie #7821

Plantage lors d’une erreur d’authentification

Added by Daniel Dehennin over 9 years ago. Updated over 9 years ago.

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

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)

Related issues

Related to eoleflask-aaa - Anomalie #7448: Erreur de connexion à genconfig après un redémarrage du service eoleflask Fermé 07/04/2014
Duplicated by eole-genconfig - Anomalie #7834: "Internal Server Error" en cas d'erreur d'authenfication Fermé 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

  • Due date set to 04/04/2014
  • Assigned To set to Emmanuel GARETTE
  • Target version set to Eole 2.4-RC3

#3 Updated by Emmanuel GARETTE over 9 years ago

  • Status changed from Résolu to Fermé

OK :

L'authentification locale (PAM) a échoué

Also available in: Atom PDF