Development #51671
à la suppression d'un utilisateur : TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
Début:
04 mars 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/37086/
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType' (4 additional frame(s) were not displayed) ... File "django/db/models/query.py", line 392, in create obj = self.model(**kwargs) File "authentic2/apps/journal/models.py", line 325, in __init__ self.add_reference_to_instance(reference) File "authentic2/apps/journal/models.py", line 331, in add_reference_to_instance self.reference_ids.append(reference_integer(instance)) File "authentic2/apps/journal/models.py", line 283, in reference_integer return n_2_pairing(ContentType.objects.get_for_model(instance).pk, instance.pk) File "authentic2/apps/journal/models.py", line 275, in n_2_pairing return a * 2 ** 32 + b failure to record event "manager.user.deletion"
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 3 ans
- Projet changé de Suivi des traces à Authentic 2
Mis à jour par Benjamin Dauvergne il y a environ 3 ans
- Fichier 0001-manager-record-then-execute-user-deletion-51671.patch 0001-manager-record-then-execute-user-deletion-51671.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Benjamin Dauvergne il y a environ 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 534df33bbd21dce6a90b165922a397d872c02dd5 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Fri Mar 5 15:53:14 2021 +0100 manager: record then execute user deletion (#51671)
Mis à jour par Frédéric Péters il y a environ 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
manager: record then execute user deletion (#51671)