yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #32931
[Bug 1453754] Re: cannot login after automatic logout
** Changed in: horizon
Status: New => In Progress
** Changed in: horizon
Importance: Undecided => High
** Changed in: horizon
Assignee: (unassigned) => Matthias Runge (mrunge)
** Project changed: horizon => django-openstack-auth
** Changed in: django-openstack-auth
Milestone: None => 1.3.0
--
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/1453754
Title:
cannot login after automatic logout
Status in Django OpenStack Auth:
In Progress
Bug description:
After being logged out due to inactivity, the next login attempt fails
with "Something went wrong" error. This happens with any user.
First successful login:
2015-05-11 01:56:11,986 2327 INFO openstack_auth.forms Login successful for user "gtirloni".
Second unsuccessful login:
2015-05-11 10:24:30,717 2328 INFO openstack_auth.forms Login successful for user "gtirloni".
2015-05-11 10:24:30,718 2328 ERROR django.request Internal Server Error: /dashboard/auth/login/
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openstack_auth/views.py", line 111, in login
**kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 51, in login
auth_login(request, form.get_user())
File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 102, in login
if _get_user_session_key(request) != user.pk or (
File "/usr/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 "/usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 969, in to_python
params={'value': value},
ValidationError: [u"'1550aa46bac146a0ac76e4801a66e065' value must be an integer."]
The workaround is to clean all cookies and start again, or possibly
use an incognito window.
To manage notifications about this bug go to:
https://bugs.launchpad.net/django-openstack-auth/+bug/1453754/+subscriptions
References