Bug #24189
crash sur lasso.ProfileInvalidProtocolprofileError
Début:
30 mai 2018
Echéance:
% réalisé:
100%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
except lasso.ProfileInvalidProtocolprofileError: log_info_authn_request_details(login) message = _("SAMLv2 Single Sign On: the request cannot be " "answered because no valid protocol binding could be found") logger.warning("the request cannot be answered because no " "valid protocol binding could be found") login.response.status.statusMessage = 'No valid protocol binding could be found' return HttpResponseBadRequest(message, content_type='text/plain')
mais pas de login.response à ce moment-là :
Internal Server Error: /idp/saml2/sso Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/authentic2/decorators.py", line 29, in f return func(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/authentic2/decorators.py", line 29, in f return func(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 58, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/authentic2/idp/saml/saml2_endpoints.py", line 116, in f return func(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/authentic2/idp/saml/saml2_endpoints.py", line 466, in sso login.response.status.statusMessage = 'No valid protocol binding could be found' AttributeError: 'NoneType' object has no attribute 'status'
Fichiers
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a presque 6 ans
- Fichier 0001-idp-saml-do-not-modify-absent-response-on-ProfileInv.patch 0001-idp-saml-do-not-modify-absent-response-on-ProfileInv.patch ajouté
- Patch proposed changé de Non à Oui
Juste virer la ligne, je m'étais un peu emballé dans 2a3a165f60 (2014!?!).
Mis à jour par Benjamin Dauvergne il y a presque 6 ans
- Statut changé de Nouveau à Solution proposée
Mis à jour par Frédéric Péters il y a presque 6 ans
- Statut changé de Solution proposée à Solution validée
Ok.
Mis à jour par Benjamin Dauvergne il y a presque 6 ans
- Statut changé de Solution validée à Résolu (à déployer)
- % réalisé changé de 0 à 100
Appliqué par commit authentic2|700786714ffc5679b179637ce660f38ad9d76e8e.
Mis à jour par Benjamin Dauvergne il y a plus de 5 ans
- Statut changé de Résolu (à déployer) à Fermé
idp/saml: do not modify absent response on ProfileInvalidProtocolprofileError (fixes #24189)
On this path it's impossible to return an AuthnResponse as Lasso cannot
decide on the destination URL, as no protocol profile could be
determined.