Projet

Général

Profil

Development #51671

à la suppression d'un utilisateur : TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

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

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

Révision 534df33b (diff)
Ajouté par Benjamin Dauvergne il y a environ 3 ans

manager: record then execute user deletion (#51671)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 3 ans

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

Mis à jour par Benjamin Dauvergne il y a environ 3 ans

  • Assigné à mis à Benjamin Dauvergne
#3

Mis à jour par Benjamin Dauvergne il y a environ 3 ans

#4

Mis à jour par Frédéric Péters il y a environ 3 ans

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

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

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

Formats disponibles : Atom PDF