Bug #58903
{% make_public_url %} : TypeError: 'NoneType' object is not subscriptable
Début:
23 novembre 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/53945/
TypeError: 'NoneType' object is not subscriptable File "django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "combo/apps/wcs/views.py", line 149, in redirect_crypto_url real_url += '&orig=%s' % service['orig']
Fichiers
Demandes liées
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Nouveau à En cours
- Assigné à mis à Frédéric Péters
Parce qu'appelé sans URL (mais ça serait pareil si appelé avec une URL d'un service inconnu), je vais traiter ça pour retourne l'URL d'origine dans cette situation.
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Sujet changé de TypeError: 'NoneType' object is not subscriptable à {% make_public_url %} : TypeError: 'NoneType' object is not subscriptable
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Fichier 0001-misc-allow-calling-make_public_url-on-empty-or-non-p.patch 0001-misc-allow-calling-make_public_url-on-empty-or-non-p.patch ajouté
- Statut changé de En cours à Solution proposée
- Patch proposed changé de Non à Oui
quand c'est appelé avec une url tierce, ou vide, alors on renvoie juste l'url.
Mis à jour par Lauréline Guérin il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 537f45400eb8b69838c73b6fe411d7c9eaa094d6 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Tue Nov 23 15:40:10 2021 +0100 misc: allow calling {% make_public_url %} on empty or non-publik URLs (#58903)
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
Mis à jour par Lauréline Guérin il y a environ 2 ans
- Lié à Bug #63476: make_public_url appelé sur une url invalide ajouté
misc: allow calling {% make_public_url %} on empty or non-publik URLs (#58903)