Project

General

Profile

Anomalie #7448

Erreur de connexion à genconfig après un redémarrage du service eoleflask

Added by Laurent Flori over 6 years ago. Updated about 6 years ago.

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

100%

Spent time:
Distribution:
EOLE 2.4

Description

Pour reproduire :
  • se connecter à genconfig
  • se déconnecter et laisser le navigateur ouvert
  • relancer le service eoleflask
  • se reconnecter à genconfig

Erreur obtenue :

AttributeError: 'SecureCookieSession' object has no attribute 'sid'


Related issues

Related to eole-genconfig - Anomalie #7834: "Internal Server Error" en cas d'erreur d'authenfication Fermé 04/04/2014
Related to eoleflask-aaa - Anomalie #7821: Plantage lors d’une erreur d’authentification Fermé 04/01/2014 04/04/2014

Associated revisions

Revision 5afefde8 (diff)
Added by Bruno Boiget about 6 years ago

Correction si authentification en cours pendant le redémarrage d'eoleflask

Fixes #7448 @3h

Revision 156b48f7 (diff)
Added by Bruno Boiget about 6 years ago

Correction dans le cas de l'utilisation d'un backend Redis

Ref #7448 @30m

History

#1 Updated by Daniel Dehennin over 6 years ago

  • Due date set to 04/04/2014
  • Status changed from Nouveau to Accepté
  • Assigned To set to Ghislain Loaec
  • Start date set to 03/24/2014

D’après Ghislain c’est déjà résolu.

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

J'arrive à reproduire ce bug (page affichée est : Internal Server Error) mais c'est bien la même erreur dans les logs :

# tail -f /var/log/eoleflask/eolegenconfig.log 
2014-04-02 12:18:53,848: 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 1266, in full_dispatch_request
    response = self.process_response(response)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1407, in process_response
    self.save_session(ctx.session, response)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 757, in save_session
    return self.session_interface.save_session(self, session, response)
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/cachedsession.py", line 251, in save_session
    self.manager.put(session)
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/cachedsession.py", line 124, in put
    self.parent.put(session)
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/cachedsession.py", line 197, in put
    print "Storing session: %s" % session.sid
AttributeError: 'SecureCookieSession' object has no attribute 'sid'

#3 Updated by Joël Cuissinat over 6 years ago

  • Due date changed from 04/04/2014 to 04/18/2014
  • Target version changed from Eole 2.4-RC3 to Eole 2.4 Stable

#4 Updated by Joël Cuissinat over 6 years ago

  • Due date deleted (04/18/2014)
  • Target version deleted (Eole 2.4 Stable)
  • Start date deleted (03/24/2014)

#5 Updated by Bruno Boiget about 6 years ago

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

#6 Updated by Bruno Boiget about 6 years ago

problème contourné en initialisant un manager de session par défaut à l'initialisation de l'application (écrasé ensuite une fois que la configuration de l'application est disponible)

Ce fonctionnement peut poser problème dans le cas d'une utilisation d'eoleflask-aaa en mode global (pas utilisé actuellement). cf demande liée

#7 Updated by Daniel Dehennin about 6 years ago

  • Due date set to 07/04/2014
  • Target version set to Eole 2.4.0.1

#8 Updated by Daniel Dehennin about 6 years ago

  • Assigned To changed from Ghislain Loaec to Bruno Boiget

#9 Updated by Joël Cuissinat about 6 years ago

  • Status changed from Résolu to Fermé

Testé OK.

Also available in: Atom PDF