← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1491117] Re: Error when logging back in after timeout

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1491117

Title:
  Error when logging back in after timeout

Status in django-openstack-auth:
  In Progress
Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Internal Server Error: /auth/login/
  Traceback (most recent call last):
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
      return view(request, *args, **kwargs)
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
      response = view_func(request, *args, **kwargs)
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
      response = view_func(request, *args, **kwargs)
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/openstack_auth/views.py", line 112, in login
      **kwargs)
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
      return view(request, *args, **kwargs)
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
      response = view_func(request, *args, **kwargs)
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
      response = view_func(request, *args, **kwargs)
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/contrib/auth/views.py", line 51, in login
      auth_login(request, form.get_user())
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 102, in login
      if _get_user_session_key(request) != user.pk or (
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 59, in _get_user_session_key
      return get_user_model()._meta.pk.to_python(request.session[SESSION_KEY])
    File "/Users/robcresswell/horizon/.venv/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 969, in to_python
      params={'value': value},
  ValidationError: [u"'63bb5e0a7a3c42049236df7438246e57' value must be an integer."]

  Django: 1.8.4
  D-O-A: 1.4.0

  My initial thoughts are: the move to Django 1.8 has introduced some
  different behaviour OR https://review.openstack.org/#/c/142481/ has
  caused shenanigans.

To manage notifications about this bug go to:
https://bugs.launchpad.net/django-openstack-auth/+bug/1491117/+subscriptions


References