Bug #62190
AttributeError: 'AnonymousAuthenticServiceUser' object has no attribute 'ou'
Début:
25 février 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/54645/
AttributeError: 'AnonymousAuthenticServiceUser' object has no attribute 'ou' (20 additional frame(s) were not displayed) ... File "django/template/base.py", line 169, in render with context.bind_template(self): File "contextlib.py", line 112, in __enter__ return next(self.gen) File "django/template/context.py", line 246, in bind_template updates.update(processor(self.request)) File "authentic2/context_processors.py", line 85, in home ctx['home_url'] = get_home_url(request) File "authentic2/utils/service.py", line 98, in get_home_url elif request.user.is_authenticated and request.user.ou and request.user.ou.home_url:
Fichiers
Révisions associées
misc: declare an empty ou attribute in fake signature users (#62190)
Historique
Mis à jour par Frédéric Péters il y a environ 2 ans
- Projet changé de Suivi des traces à Authentic 2
(le AnonymousAuthenticServiceUser est dans hobo) (i.e. ça peut aussi être ajusté là
Mis à jour par Frédéric Péters il y a environ 2 ans
- Fichier 0001-misc-declare-an-empty-ou-attibute-in-fake-signature-.patch 0001-misc-declare-an-empty-ou-attibute-in-fake-signature-.patch ajouté
- Projet changé de Authentic 2 à Hobo
- Statut changé de Nouveau à Solution proposée
- Assigné à mis à Frédéric Péters
- Patch proposed changé de Non à Oui
Mis à jour par Paul Marillonnet il y a environ 2 ans
- Statut changé de Solution proposée à Solution validée
Ok juste une petite faute dans le message de commit, un 'r' manquant dans 'attribute'.
Mis à jour par Frédéric Péters il y a environ 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit bd178920aa6901ff74c617f8cec7b827ce41a21e Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Feb 25 16:21:48 2022 +0100 misc: declare an empty ou attribute in fake signature users (#62190)
Mis à jour par Transition automatique il y a environ 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: declare an empty ou attribute in fake signature users (#62190)