Projet

Général

Profil

Development #48339

MultipleObjectsReturned: get() returned more than one User -- it returned 2!

Ajouté par Sentry Io il y a plus de 3 ans. Mis à jour il y a plus de 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
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

Révision b2f92638 (diff)
Ajouté par Benjamin Dauvergne il y a plus de 3 ans

auth_oidc: handle case of multiple users with same email but email should be unique (#48339)

Historique

#1

Mis à jour par Lauréline Guérin il y a plus de 3 ans

  • Projet changé de Suivi des traces à Authentic 2
#2

Mis à jour par Benjamin Dauvergne il y a plus de 3 ans

  • Assigné à mis à Benjamin Dauvergne
#3

Mis à jour par Benjamin Dauvergne il y a plus de 3 ans

#4

Mis à jour par Nicolas Roche il y a plus de 3 ans

  • Statut changé de Solution proposée à Solution validée
#5

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)
#6

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

Formats disponibles : Atom PDF