Development #38163
erreur lors du paramètrage de LOGIN_HINTS
Début:
03 décembre 2019
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
En activant le paramètre "LOGIN_HINTS" (dévéloppé dans #30966) je clique depuis le portail Citoyen sur connexion et j'ai l'erreur:
Environment: Request Method: GET Request URL: https://citoyen-combo.entrouvert.lan/accounts/mellon/login/ Django Version: 1.11.20 Python Version: 2.7.14 Installed Applications: '' Installed Middleware: '' Traceback: File "/home/serghei/sandbox/venvs/publik-env/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner 41. response = get_response(request) File "/home/serghei/sandbox/venvs/publik-env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response 249. response = self._get_response(request) File "/home/serghei/sandbox/venvs/publik-env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/home/serghei/sandbox/venvs/publik-env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/serghei/sandbox/venvs/publik-env/local/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view 58. return view_func(*args, **kwargs) File "/home/serghei/sandbox/venvs/publik-env/local/lib/python2.7/site-packages/django/views/generic/base.py" in view 68. return self.dispatch(request, *args, **kwargs) File "/home/serghei/sandbox/venvs/publik-env/local/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch 88. return handler(request, *args, **kwargs) File "/home/serghei/dev/django-mellon/mellon/views.py" in get 441. self.add_login_hints(idp, authn_request, request=request, next_url=next_url) File "/home/serghei/dev/django-mellon/mellon/views.py" in add_login_hints 471. if self.is_in_backoffice(request, next_url): File "/home/serghei/dev/django-mellon/mellon/views.py" in is_in_backoffice 464. return path.startswith(('/admin/', '/manage/', '/manager/')) Exception Type: AttributeError at /accounts/mellon/login/ Exception Value: 'NoneType' object has no attribute 'startswith'
or en appelant https://citoyen-combo.entrouvert.lan/manage cela fonctionne comme voulu.
Fichiers
Demandes liées
Révisions associées
Historique
Mis à jour par Serghei Mihai il y a plus de 4 ans
- Lié à Development #30966: Générer un noeud eo:login_hint dans le noeud Extension des AuthenticationRequest ajouté
Mis à jour par Benjamin Dauvergne il y a plus de 4 ans
- Fichier 0001-misc-make-login_hint-works-without-next-parameter-38.patch 0001-misc-make-login_hint-works-without-next-parameter-38.patch ajouté
- Tracker changé de Support à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Serghei Mihai il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Benjamin Dauvergne il y a plus de 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 09c32c83d5a9e03a1781e5a70f18e289f7d1e2d2 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Tue Dec 3 17:26:53 2019 +0100 misc: make login_hint works without next parameter (#38163)
Mis à jour par Frédéric Péters il y a plus de 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: make login_hint works without next parameter (#38163)