Projet

Général

Profil

Bug #9045

ne pas planter la cellule "lien vers le panier" si appelée sans utilisateur

Ajouté par Frédéric Péters il y a plus de 8 ans. Mis à jour il y a presque 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
19 novembre 2015
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Normalement ça n'arrive pas grâce au is_relevant mais il peut quand même y avoir des appels ajax au rendu.

Internal Server Error: /ajax/cell/1/lingo_lingobasketlinkcell-2/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/combo/public/views.py", line 75, in ajax_page_cell
    return HttpResponse(cell.render(context), content_type='text/html')
  File "/usr/lib/python2.7/dist-packages/lingo/models.py", line 299, in render
    user=context['request'].user, payment_date__isnull=True
  File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 92, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
...
TypeError: int() argument must be a string or a number, not 'SimpleLazyObject'

Fichiers

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 8 ans

  • Statut changé de Nouveau à En cours
  • Patch proposed changé de Non à Oui
#3

Mis à jour par Serghei Mihai il y a plus de 8 ans

Ack

#4

Mis à jour par Frédéric Péters il y a plus de 8 ans

  • Statut changé de En cours à Résolu (à déployer)
commit 2f06737731772f9d2b52152295cd906c8388ab5a
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Thu Nov 19 15:59:07 2015 +0100

    misc: protect "basket link cell" against anonymous ajax calls (#9045)
#5

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

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF