Development #48339
MultipleObjectsReturned: get() returned more than one User -- it returned 2!
Début:
06 novembre 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/6308/
MultipleObjectsReturned: get() returned more than one User -- it returned 2! (10 additional frame(s) were not displayed) ... File "django/contrib/auth/__init__.py", line 70, in authenticate user = _authenticate_with_backend(backend, backend_path, request, credentials) File "django/contrib/auth/__init__.py", line 116, in _authenticate_with_backend return backend.authenticate(*args, **credentials) File "authentic2_auth_oidc/backends.py", line 236, in authenticate user = User.objects.get(email=email) File "django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "django/db/models/query.py", line 384, in get (self.model._meta.object_name, num)
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a plus de 3 ans
- Projet changé de Suivi des traces à Authentic 2
Mis à jour par Benjamin Dauvergne il y a plus de 3 ans
- Fichier 0001-auth_oidc-handle-case-of-multiple-users-with-same-em.patch 0001-auth_oidc-handle-case-of-multiple-users-with-same-em.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Nicolas Roche il y a plus de 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Benjamin Dauvergne il y a plus de 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit b2f926388b099dfe7561914121ccb07f38f38429 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Fri Nov 6 10:22:12 2020 +0100 auth_oidc: handle case of multiple users with same email but email should be unique (#48339)
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
auth_oidc: handle case of multiple users with same email but email should be unique (#48339)