Projet

Général

Profil

Actions

Anomalie #3102

fermé

Crash when logout from TEST

Ajouté par Yann Le Jeune il y a presque 8 ans. Mis à jour il y a presque 8 ans.

Statut:
Fermé
Priorité:
Immédiat
Assigné à:
Catégorie:
-
Version cible:
Début:
26 mai 2016
Echéance:
% réalisé:

100%

Temps estimé:
Élément(s):
Difficulté:

Description

Then when loging in we have the lazyobject bug : https://tickets.iggdrasil.net/issues/3101

TypeError at /accounts/logout/

int() argument must be a string or a number, not 'AnonymousUser'

Request Method: GET

Request URL: http://test.ishtar-archeo.net/accounts/logout/

Django Version: 1.4.5

Exception Type: TypeError

Exception Value:

(...)

Traceback:

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1. response = response.render()

File "/usr/lib/python2.7/dist-packages/django/template/response.py" in render

  1. self._set_content(self.rendered_content)

File "/usr/lib/python2.7/dist-packages/django/template/response.py" in rendered_content

  1. context = self.resolve_context(self.context_data)

File "/usr/lib/python2.7/dist-packages/django/template/response.py" in resolve_context

  1. return RequestContext(self._request, context, current_app=self._current_app)

File "/usr/lib/python2.7/dist-packages/django/template/context.py" in init

  1. self.update(processor(request))

File "/srv/ishtarctest/ishtar/ishtar_common/context_processors.py" in get_base_context

  1. for item in model.get_owns(request.user):

File "/srv/ishtarctest/ishtar/archaeological_finds/models.py" in get_owns

  1. return FindBasket.objects.filter(user=user)

File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py" in filter

  1. return self.get_query_set().filter(*args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in filter

  1. return self._filter_or_exclude(False, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in _filter_or_exclude

  1. clone.query.add_q(Q(*args, **kwargs))

File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py" in add_q

  1. can_reuse=used_aliases, force_having=force_having)

File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py" in add_filter

  1. connector)

File "/usr/lib/python2.7/dist-packages/django/db/models/sql/where.py" in add

  1. value = obj.prepare(lookup_type, value)

File "/usr/lib/python2.7/dist-packages/django/db/models/sql/where.py" in prepare

  1. return self.field.get_prep_lookup(lookup_type, value)

File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py" in get_prep_lookup

  1. return self._pk_trace(value, 'get_prep_lookup', lookup_type)

File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py" in _pk_trace

  1. v = getattr(field, prep_func)(lookup_type, v, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/db/models/fields/init.py" in get_prep_lookup

  1. return self.get_prep_value(value)

File "/usr/lib/python2.7/dist-packages/django/db/models/fields/init.py" in get_prep_value

  1. return int(value)

Exception Type: TypeError at /accounts/logout/

Exception Value: int() argument must be a string or a number, not 'AnonymousUser'


Demandes liées 1 (0 ouverte1 fermée)

Lié à Ishtar - Anomalie #3101: Crash on Ishtar_TESTFerméÉtienne Loks25 mai 2016

Actions

Mis à jour par Étienne Loks il y a presque 8 ans

  • % réalisé changé de 0 à 100
  • Statut changé de Nouveau à Résolu
  • Description mis à jour (diff)

Mis à jour par Étienne Loks il y a presque 8 ans

Mis à jour par Yann Le Jeune il y a presque 8 ans

  • Statut changé de Résolu à Fermé

OK

Actions

Formats disponibles : Atom PDF