Bug #43726
Graphe avec largeur non définie, ValueError: invalid literal for int() with base 10: ''
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
07 juin 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/2639/
ValueError: invalid literal for int() with base 10: '' File "django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "combo/apps/dataviz/views.py", line 44, in dataviz_graph width=int(request.GET.get('width', 0)) or None, Internal Server Error: /api/dataviz/graph/39/
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a presque 4 ans
- Projet changé de Suivi des traces à Combo
- Sujet changé de ValueError: invalid literal for int() with base 10: '' à Graphe avec largeur non définie, ValueError: invalid literal for int() with base 10: ''
?width= sans valeur dans l'URL, lors d'une indexation par Google.
Mis à jour par Frédéric Péters il y a presque 4 ans
- Fichier 0001-dataviz-don-t-crash-on-missing-width-value-43726.patch 0001-dataviz-don-t-crash-on-missing-width-value-43726.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Emmanuel Cazenave il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit f36306ceea141e4ff6a2af2c1c0adea90754b8f2 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Sun Jun 7 18:08:17 2020 +0200 dataviz: don't crash on missing width value (#43726)
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
dataviz: don't crash on missing width value (#43726)