Bug #45257
saml : tests idp en échec
Statut:
Rejeté
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
18 juillet 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
Ça remonte depuis lasso :
RuntimeError: neither lasso.logger nor logging.getLogger('lasso') did return a logger The above exception was the direct cause of the following exception: app = <django_webtest.DjangoTestApp object at 0x7fac29f9e8b0>, idp = <tests.test_idp_saml2.Raw object at 0x7fac29a38040>, user = <User: 'john.doe (9c2a19)'> def test_sso_redirect_post(app, idp, user): scenario = Scenario(app, sp_kwargs=dict(binding='post')) > scenario.launch_authn_request() tests/test_idp_saml2.py:502: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_idp_saml2.py:337: in launch_authn_request response = self.app.get(url) /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/django_webtest/__init__.py:138: in get response = super(DjangoTestApp, self).get(url, *args, **kwargs) /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/webtest/app.py:327: in get return self.do_request(req, status=status, /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/django_webtest/__init__.py:100: in do_request response = super(DjangoTestApp, self).do_request(req, status, /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/webtest/app.py:623: in do_request res = req.get_response(app, catch_exc_info=True) /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/webob/request.py:1309: in send status, headers, app_iter, exc_info = self.call_application( […] /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/django/core/handlers/base.py:185: in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) src/authentic2/decorators.py:47: in f return func(request, *args, **kwargs) src/authentic2/decorators.py:47: in f return func(request, *args, **kwargs) /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/django/views/decorators/cache.py:57: in _wrapped_view_func response = view_func(request, *args, **kwargs) /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/django/views/decorators/csrf.py:58: in wrapped_view return view_func(*args, **kwargs) src/authentic2/idp/saml/saml2_endpoints.py:138: in f return func(request, *args, **kwargs) src/authentic2/idp/saml/saml2_endpoints.py:500: in sso login.processAuthnRequestMsg(force_str(message)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <lasso.Login object at 0x7fac29f9e6d0> authn_request_msg = 'SAMLRequest=fVLBboJAFPwVsnddEFTcAAmKJiZtY9qmh16aDT4jybJL9y3WfpLf4Y91F6KhF29kmJk3M9kEeS0alrfmKF%2FhuwU03rkWEln3IyWtlkx...a91zzY0Idn1cr0k9M7Netv%2FTj3yYtfdFjslqvLX1ai5eTy%2BQ6r96NBRWeOGRWtqiJcLoX5WGrixnY1ugdD74eHTyP4A&RelayState=relay-state' def processAuthnRequestMsg(self, authn_request_msg = None): ''' Processes received authentication request, checks it is signed correctly, checks if requested protocol profile is supported, etc. @param authn_request_msg: the authentication request received @return: 0 on success; or <itemizedlist> <listitem> <para> #LASSO_PARAM_ERROR_BAD_TYPE_OR_None_OBJ if login is no a L{Login} object, </para> </listitem> <listitem> <para> #LASSO_PROFILE_ERROR_MISSING_REQUEST if C{authn_request_msg} is #None and no request as actually been processed or initialized — see lasso_login_init_idp_initiated_authn_request(), ''' > rc = _lasso.login_process_authn_request_msg(self._cptr, str2lasso(authn_request_msg)) E SystemError: <built-in function login_process_authn_request_msg> returned a result with an error set /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/lasso.py:2531: SystemError !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: Test failed, continuing from this test next run. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! =================================================================== 1 failed, 538 passed, 456 deselected in 339.47 seconds ==================================================================== ERROR: InvocationError for command '/tmp/tox-paul/authentic/authentic-py3-dj111-drf34/bin/py.test --sw tests/ --random-group' (exited with code 2) ___________________________________________________________________________________________ summary ___________________________________________________________________________________________ ERROR: authentic-py3-dj111-drf34: commands failed
Ça et en cadeau la longue trace qui donne l'impression d'une récursion infinie sur :
/tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/django/utils/deprecation.py:140: in __call__ response = self.get_response(request) /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/django/core/handlers/exception.py:43: in inner response = response_for_exception(request, exc) /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/django/core/handlers/exception.py:93: in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info()) /tmp/tox-paul/authentic/authentic-py3-dj111-drf34/lib/python3.8/site-packages/django/core/handlers/exception.py:41: in inner response = get_response(request)
Versions de lasso installées :
liblasso3/unstable,testing,now 2.6.1-1 amd64 [installé] Library for Liberty Alliance and SAML protocols - runtime library liblasso3-dev/unstable,testing,now 2.6.1-1 amd64 [installé] Library for Liberty Alliance and SAML protocols - development kit python-lasso/stable,now 2.6.0-2+b2 amd64 [installé] Library for Liberty Alliance and SAML protocols - Python bindings python3-lasso/unstable,testing,now 2.6.1-1 amd64 [installé] Library for Liberty Alliance and SAML protocols - Python bindings
Historique
Mis à jour par Paul Marillonnet il y a presque 4 ans
Est-ce tout simplement parce que liblasso3 python3-lasso ne supporte pas encore python dans sa version 3.8 ou supérieure ?
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
Je ne vois rien sur jenkins, on parle de quoi là ?
Mis à jour par Paul Marillonnet il y a presque 4 ans
Pardon, pas précisé, trace en local en tournant les tests avec tox.
Mis à jour par Benjamin Dauvergne il y a plus de 3 ans
Tu pourrais tester avec un lasso compile depuis #44287 voir si ça change quelque chose pour toi ? Je suis parti sur ces modifications pour que ça tourne chez moi en local justement sur un mélange de testing/unstable.