Bug #25965
crash page d'accueil
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
30 août 2018
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
aou 30 10:31:26 cresson authentic2[1063]: - - - ERROR Internal Server Error: / 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/django/utils/decorators.py", line 145, in inner return func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/authentic2/views.py", line 384, in dispatch return login_required(super(Homepage, self).dispatch)(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view return view_func(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 158, in get context = self.get_context_data(**kwargs) File "/usr/lib/python2.7/dist-packages/authentic2/views.py", line 389, in get_context_data ctx['authorized_services'] = service_list(self.request) File "/usr/lib/python2.7/dist-packages/authentic2/views.py", line 375, in service_list return utils.accumulate_from_backends(request, 'service_list') File "/usr/lib/python2.7/dist-packages/authentic2/utils.py", line 126, in accumulate_from_backends list += method(request, **kwargs) File "/usr/lib/python2.7/dist-packages/authentic2/idp/saml/backend.py", line 60, in service_list for service_provider in qs: File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 162, in __iter__ self._fetch_all() File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 965, in _fetch_all self._result_cache = list(self.iterator()) File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 254, in iterator for row in compiler.results_iter(results): File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 800, in results_iter row = self.apply_converters(row, converters) File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 784, in apply_converters value = converter(value, expression, self.connection, self.query.context) File "/usr/lib/python2.7/dist-packages/authentic2/saml/fields.py", line 171, in from_db_value return self.to_python(value) File "/usr/lib/python2.7/dist-packages/authentic2/saml/fields.py", line 168, in to_python return value.split(",") AttributeError: 'NoneType' object has no attribute 'split'
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 5 ans
- Fichier 0001-saml-don-t-crash-on-empty-multi-select-field-25965.patch 0001-saml-don-t-crash-on-empty-multi-select-field-25965.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Pas sûr de ce que ça cache, mais patch attaché.
Mis à jour par Paul Marillonnet il y a plus de 5 ans
- Statut changé de Solution proposée à Solution validée
Frédéric Péters a écrit :
Pas sûr de ce que ça cache
Oui, étrange (je n'arrive pas à reproduire même en touchant au formats de nameID acceptés, dans la config de la politique de gestion des SP dans le shell django).
Mis à jour par Frédéric Péters il y a plus de 5 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 4ebe9d84cb9be07b1588dd50f2a99eb1e2713a08 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Thu Aug 30 13:50:24 2018 +0200 saml: don't crash on empty multi select field (#25965)
Mis à jour par Benjamin Dauvergne il y a plus de 5 ans
- Statut changé de Résolu (à déployer) à Fermé
saml: don't crash on empty multi select field (#25965)