Bug #61459
échec du get_service sur un appel hors tenant, AttributeError: 'WSGIRequest' object has no attribute 'session'
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
05 février 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/54490/
TenantNotFound: File "hobo/multitenant/middleware.py", line 73, in process_request request.tenant = self.get_tenant_by_hostname(hostname_without_port) File "hobo/multitenant/middleware.py", line 46, in get_tenant_by_hostname raise TenantNotFound Http404: File "django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "django/utils/deprecation.py", line 93, in __call__ response = self.process_request(request) File "hobo/multitenant/middleware.py", line 77, in process_request raise Http404 AttributeError: 'WSGIRequest' object has no attribute 'session' (4 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 77, in home service = get_service(request) File "authentic2/utils/service.py", line 77, in get_service if 'service_type' in request.session and 'service_pk' in request.session:
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 2 ans
- Projet changé de Suivi des traces à Authentic 2
- Sujet changé de AttributeError: 'WSGIRequest' object has no attribute 'session' à échec du get_serivce sur un appel hors tenant, AttributeError: 'WSGIRequest' object has no attribute 'session'
Mis à jour par Frédéric Péters il y a environ 2 ans
- Fichier 0001-misc-do-not-search-for-home-URLs-on-requests-to-non-.patch 0001-misc-do-not-search-for-home-URLs-on-requests-to-non-.patch ajouté
- 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 2 ans
- Sujet changé de échec du get_serivce sur un appel hors tenant, AttributeError: 'WSGIRequest' object has no attribute 'session' à échec du get_service sur un appel hors tenant, AttributeError: 'WSGIRequest' object has no attribute 'session'
Mis à jour par Frédéric Péters il y a environ 2 ans
- Statut changé de Solution proposée à En cours
- Patch proposed changé de Oui à Non
Mis à jour par Frédéric Péters il y a environ 2 ans
- Fichier 0001-misc-do-not-search-for-home-URLs-on-requests-to-non-.patch 0001-misc-do-not-search-for-home-URLs-on-requests-to-non-.patch ajouté
- Statut changé de En cours à Solution proposée
- 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.
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 ced3e831128122edaf228e9fbd2075196d078563 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Sat Feb 5 17:19:34 2022 +0100 misc: do not search for home URLs on requests to non-existant tenants (#61459)
Mis à jour par Transition automatique il y a environ 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: do not search for home URLs on requests to non-existant tenants (#61459)