Projet

Général

Profil

Bug #62190

AttributeError: 'AnonymousAuthenticServiceUser' object has no attribute 'ou'

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

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

Révision bd178920 (diff)
Ajouté par Frédéric Péters il y a environ 2 ans

misc: declare an empty ou attribute in fake signature users (#62190)

Révision 411f9c39 (diff)
Ajouté par Frédéric Péters il y a environ 2 ans

misc: declare an empty ou attribute in fake signature users (#62190)

Historique

#1

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à

#3

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

#4

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'.

#5

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

Mis à jour par Transition automatique il y a environ 2 ans

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

Mis à jour par Transition automatique il y a environ 2 ans

Automatic expiration

Formats disponibles : Atom PDF