Anomalie #544
ferméADMIN / Password Change cause a crash
0%
Description
Environment:
Request Method: GET
Request URL: http://ishtar.proxience.com/test/admin/ishtar_base/ishtaruser/80/password/
Django Version: 1.2.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
'registration',
'ishtar.ishtar_base']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response
- response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/pymodules/python2.6/django/contrib/admin/options.py" in wrapper
- return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/utils/decorators.py" in _wrapped_view
- response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/views/decorators/cache.py" in _wrapped_view_func
- response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/contrib/admin/sites.py" in inner
- return view(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/utils/decorators.py" in _wrapper
- return decorator(bound_func)(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/utils/decorators.py" in _wrapped_view
- response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/utils/decorators.py" in bound_func
- return func(self, *args2, **kwargs2)
File "/usr/lib/pymodules/python2.6/django/db/transaction.py" in _commit_on_success
- res = func(*args, **kw)
File "/usr/lib/pymodules/python2.6/django/contrib/admin/options.py" in change_view
- obj = self.get_object(request, unquote(object_id))
File "/usr/lib/pymodules/python2.6/django/contrib/admin/options.py" in get_object
- return queryset.get(pk=object_id)
File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in get
- clone = self.filter(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in filter
- return self._filter_or_exclude(False, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in _filter_or_exclude
- clone.query.add_q(Q(*args, **kwargs))
File "/usr/lib/pymodules/python2.6/django/db/models/sql/query.py" in add_q
- can_reuse=used_aliases)
File "/usr/lib/pymodules/python2.6/django/db/models/sql/query.py" in add_filter
- connector)
File "/usr/lib/pymodules/python2.6/django/db/models/sql/where.py" in add
- value = obj.prepare(lookup_type, value)
File "/usr/lib/pymodules/python2.6/django/db/models/sql/where.py" in prepare
- return self.field.get_prep_lookup(lookup_type, value)
File "/usr/lib/pymodules/python2.6/django/db/models/fields/related.py" in get_prep_lookup
- return self._pk_trace(value, 'get_prep_lookup', lookup_type)
File "/usr/lib/pymodules/python2.6/django/db/models/fields/related.py" in _pk_trace
- v = getattr(field, prep_func)(lookup_type, v, **kwargs)
File "/usr/lib/pymodules/python2.6/django/db/models/fields/init.py" in get_prep_lookup
- return self.get_prep_value(value)
File "/usr/lib/pymodules/python2.6/django/db/models/fields/init.py" in get_prep_value
- return int(value)
Exception Type: ValueError at /test/admin/ishtar_base/ishtaruser/80/password/
Exception Value: invalid literal for int() with base 10: '80/password'
Mis à jour par Étienne Loks il y a plus de 11 ans
- Statut changé de Nouveau à À confirmer
Cannot reproduce. Seems to be fixed.