Project

General

Profile

Development #65553

saml, TypeError: Model instances without primary key value are unhashable

Added by Sentry Io over 1 year ago. Updated about 1 year ago.

Status:
Solution proposée
Priority:
Normal
Category:
-
Target version:
-
Start date:
23 May 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/60291/

TypeError: Model instances without primary key value are unhashable
(15 additional frame(s) were not displayed)
...
  File "django/db/transaction.py", line 284, in __exit__
    connection.set_autocommit(True)
  File "django/db/backends/base/base.py", line 410, in set_autocommit
    self.run_and_clear_commit_hooks()
  File "django/db/backends/base/base.py", line 636, in run_and_clear_commit_hooks
    func()
  File "hobo/agent/authentic2/provisionning.py", line 96, in callback
    self.saved.setdefault(klass, set()).add(instance)
  File "django/db/models/base.py", line 536, in __hash__
    raise TypeError("Model instances without primary key value are unhashable")

Files


Related issues

Has duplicate Hobo - Bug #79483: erreur provisionning SSO SAML (TypeError: Model instances without primary key value are unhashable)Fermé06 July 2023

Actions

History

#1

Updated by Frédéric Péters over 1 year ago

  • Project changed from Suivi des traces to Authentic 2
#2

Updated by Benjamin Dauvergne over 1 year ago

  • Project changed from Authentic 2 to Hobo

La classe provisionning n'est pas assez sioux pour détecter qu'un utilisateur est créé puis supprimé dans la même transaction, de plus l'instance devrait être copiée avant d'être ajouté au set().

#3

Updated by Benjamin Dauvergne over 1 year ago

  • Assignee set to Benjamin Dauvergne
#4

Updated by Benjamin Dauvergne over 1 year ago

#5

Updated by Benjamin Dauvergne about 1 year ago

Rebasé.

#6

Updated by Frédéric Péters 2 months ago

  • Has duplicate Bug #79483: erreur provisionning SSO SAML (TypeError: Model instances without primary key value are unhashable) added

Also available in: Atom PDF