Projet

Général

Profil

Development #35385

provisionning, ou peut être None

Ajouté par Benjamin Dauvergne il y a plus de 4 ans. Mis à jour il y a plus de 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
13 août 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Bug introduit par 83ee68e26 et #35168.


Fichiers

Révisions associées

Révision 24477e2f (diff)
Ajouté par Benjamin Dauvergne il y a plus de 4 ans

agent-authentic2: test if ou is None in provisionning (#35385)

Historique

#1

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

Corrige cette trace :

From: root@authentic.node2.test.saas.entrouvert.org
To: admin+authentic2-multitenant.test@entrouvert.com
Date: Tue, 13 Aug 2019 12:55:02 +0200
Message-ID: <20190813105502.25174.46267@authentic.node2.test.saas.entrouvert.org>
Subject: [idp-test-entrouvert.montpellier3m.fr] ERROR: error in provisionning thread

error in provisionning thread

AttributeError
'NoneType' object has no attribute 'id'

Django Version: 1.11.20
Python Executable: /usr/bin/python
Python Version: 2.7.13
Python Path: ['/', '/usr/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/pl=
at-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-=
old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-pack=
ages', '/usr/lib/python2.7/dist-packages', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/=
', '/']
Server time: mar, 13 Ao=C3=BB 2019 12:55:02 +0200
Installed Applications:
''
Installed Middleware:
''

Traceback: =20

File "/usr/lib/python2.7/dist-packages/hobo/agent/authentic2/provisionning.=
py" in do_provision
  284.             self.notify_users(ous, saved.get(User, []))

File "/usr/lib/python2.7/dist-packages/hobo/agent/authentic2/provisionning.=
py" in notify_users
  172.                                     'data': [user_to_json(ou, servic=
e, user, user_roles)],

File "/usr/lib/python2.7/dist-packages/hobo/agent/authentic2/provisionning.=
py" in user_to_json
  107.                              and (role.ou_id is None or role.ou_id =
=3D=3D ou.id))]

Exception Type: AttributeError
Exception Value: 'NoneType' object has no attribute 'id'
Request data not supplied
#2

Mis à jour par Thomas Noël il y a plus de 4 ans

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

on envoie en hotfix, ou bien le cas est rare ?

#3

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

Thomas Noël a écrit :

on envoie en hotfix, ou bien le cas est rare ?

Le cas est rare, uniquement à montpellier et à mon avis c'est à corriger aussi, voir https://idp-test-entrouvert.montpellier3m.fr/manage/services/?page=7 , ce sont uniquement des services créés sur le coté genre mandaye et autres.

#4

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit 24477e2fd809e973094e8893787ce9456c552431
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Tue Aug 13 12:59:14 2019 +0200

    agent-authentic2: test if ou is None in provisionning (#35385)
#5

Mis à jour par Frédéric Péters il y a plus de 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF