Projet

Général

Profil

Development #67414

erreur 500 sur accès à une URL de logs d'un connecteur qui n'existe pas (OpenGIS.DoesNotExist: OpenGIS matching query does not exist.)

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
18 juillet 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Ça devrait être une 404,

https://sentry.entrouvert.org/entrouvert/publik/issues/62555/

OpenGIS.DoesNotExist: OpenGIS matching query does not exist.
(7 additional frame(s) were not displayed)
...
  File "django/views/generic/list.py", line 157, in get
    context = self.get_context_data()
  File "passerelle/views.py", line 229, in get_context_data
    context['object'] = self.get_object()
  File "passerelle/views.py", line 241, in get_object
    return self.model.objects.get(slug=self.kwargs['slug'])
  File "django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "django/db/models/query.py", line 408, in get
    self.model._meta.object_name

Fichiers

Révisions associées

Révision b50e16a7 (diff)
Ajouté par A. Berriot il y a presque 2 ans

misc: return HTTP 404 instead of 500 for GET requests on nonexistant connectors (#67414)

Historique

#1

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

  • Projet changé de Suivi des traces à Passerelle
#3

Mis à jour par A. Berriot il y a presque 2 ans

  • Assigné à mis à A. Berriot
#4

Mis à jour par A. Berriot il y a presque 2 ans

#5

Mis à jour par Nicolas Roche il y a presque 2 ans

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

Ack

#6

Mis à jour par A. Berriot il y a presque 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit b50e16a79b3cd8c33b028c43844f135a52ce3611
Author: Agate <aberriot@entrouvert.com>
Date:   Mon Jul 18 15:39:45 2022 +0200

    misc: return HTTP 404 instead of 500 for GET requests on nonexistant connectors (#67414)
#7

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

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

Mis à jour par Transition automatique il y a plus d'un an

Automatic expiration

Formats disponibles : Atom PDF