Projet

Général

Profil

Bug #31607

Erreur: global name 'frontend' is not defined

Ajouté par Serghei Mihai il y a environ 5 ans. Mis à jour il y a environ 5 ans.

Statut:
Fermé
Priorité:
Haut
Assigné à:
Catégorie:
-
Version cible:
-
Début:
20 mars 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Environment:

Request Method: GET
Request URL: https://connexion.cutm-publik-preprod.nfrance.com/login/

Django Version: 1.11.20
Python Version: 2.7.13
Installed Applications:
''
Installed Middleware:
''

Traceback:

File "/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py" in wrapped_view
  58.         return view_func(*args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func
  57.         response = view_func(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/authentic2/views.py" in login
  352.         if hasattr(frontend, 'get_context'):

Exception Type: NameError at /login/
Exception Value: global name 'frontend' is not defined

Fichiers

Révisions associées

Révision 4c04187f (diff)
Ajouté par Serghei Mihai il y a environ 5 ans

misc: fix authenticator var name (#31607)

Historique

#1

Mis à jour par Serghei Mihai il y a environ 5 ans

J'ai honte.

#2

Mis à jour par Emmanuel Cazenave il y a environ 5 ans

  • Statut changé de Solution proposée à Solution validée
#3

Mis à jour par Serghei Mihai il y a environ 5 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 4c04187f474f1c482681df5f84277977e18c2c5c (origin/master, origin/HEAD)
Author: Serghei Mihai <smihai@entrouvert.com>
Date:   Wed Mar 20 18:09:07 2019 +0100

    misc: fix authenticator var name (#31607)
#4

Mis à jour par Frédéric Péters il y a environ 5 ans

À regarder où ça arrivait (parce que quand même sidéré qu'on n'ait pas de test sur la vue de connexion), c'est dans un bloc sous "# Old frontends API"; c'est quoi qui fait encore passer par ce code; tu créerais un ticket pour mettre à jour ?

#5

Mis à jour par Serghei Mihai il y a environ 5 ans

C'est le code du module authentic2-auth-kerberos qui passait par ce code.

Benjamin evoquait l'idée d'intégrer tous les modules externes dans authentic.
C'est l'occasion d'adapter le module kerberos à cette nouvelle API et virer le code legacy.

#6

Mis à jour par Benjamin Dauvergne il y a environ 5 ans

Serghei Mihai a écrit :

J'ai honte.

Ce n'est pas pour rien que j'ai déconseillé de faire ce genre de renommage sur 4 modules...

#7

Mis à jour par Frédéric Péters il y a environ 5 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#8

Mis à jour par Valentin Deniaud il y a environ 5 ans

Serghei Mihai a écrit :

C'est le code du module authentic2-auth-kerberos qui passait par ce code.

PI, SSLBackend dans auth2_auth/auth2_ssl/backends.py est legacy aussi j'ai l'impression.

Formats disponibles : Atom PDF