OOPS occurs if log out is attempted while deleting a device

Bug #948440 reported by Julien Funk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical SSO provider
Fix Released
Medium
Stuart Metcalfe

Bug Description

Steps:

1) Add a device
2) Select the 'Delete' button for this device
3) On the page where it is confirming if you want to delete the device, click 'Log out'
4) See the OOPS below:

Oops!
Sorry, something just went wrong in Ubuntu Single Sign On.

We’ve recorded what happened, and we’ll fix it as soon as possible. Apologies for the inconvenience.

(OOPS ID: 2257carambolaubuntu2080)

(Sentry ID: )

Related branches

Revision history for this message
Stuart Metcalfe (stuartmetcalfe) wrote :
Download full text (4.7 KiB)

Here's the traceback from my local dev instance:

Environment:

Request Method: GET
Request URL: http://localhost:8000/device-removal/+logout

Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.messages',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django_openid_auth',
 'identityprovider',
 'django_configglue',
 'oauth_backend',
 'preflight',
 'gargoyle',
 'nexus',
 'saml2idp',
 'adminaudit',
 'raven.contrib.django',
 'devserver',
 'django_jenkins']
Installed Middleware:
['raven.contrib.django.middleware.SentryResponseErrorIdMiddleware',
 'identityprovider.middleware.time.TimeMiddleware',
 'identityprovider.middleware.dbfailover.DBFailoverMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'identityprovider.middleware.useraccount.UserAccountConversionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'identityprovider.middleware.exception.LogExceptionMiddleware',
 'raven.contrib.django.middleware.Sentry404CatchMiddleware']

Traceback:
File "/home/stuartm/Python/829836-confirm-pw-to-change/.env/local/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/core/handlers/base.py" in get_response
  111. response = callback(request, *callback_args, **callback_kwargs)
File "/home/stuartm/Python/829836-confirm-pw-to-change/.env/local/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/contrib/auth/decorators.py" in _wrapped_view
  23. return view_func(request, *args, **kwargs)
File "/home/stuartm/Python/829836-confirm-pw-to-change/identityprovider/decorators.py" in _wrapped_view
  68. return view_func(request, *args, **kwargs)
File "/home/stuartm/Python/829836-confirm-pw-to-change/.env/local/lib/python2.7/site-packages/gargoyle-0.7.2-py2.7.egg/gargoyle/decorators.py" in wrapped
  26. return func(request, *args, **kwargs)
File "/home/stuartm/Python/829836-confirm-pw-to-change/identityprovider/views/utils.py" in wrapper
  23. return fn(request, *args, **kwargs)
File "/home/stuartm/Python/829836-confirm-pw-to-change/identityprovider/views/devices.py" in device_removal
  238. id=device_id, account=request.user)
File "/home/stuartm/Python/829836-confirm-pw-to-change/.env/local/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/shortcuts/__init__.py" in get_object_or_404
  113. return queryset.get(*args, **kwargs)
File "/home/stuartm/Python/829836-confirm-pw-to-change/.env/local/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/db/models/query.py" in get
  341. clone = self.filter(*args, **kwargs)
File "/home/stuartm/Python/829836-confirm-pw-to-change/.env/local/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/db/models/query.py" in filter
  550. return self._filter_or_exclude(False, *args, **kwargs)
File "/home/stuartm/Python/829836-confirm-pw-to-...

Read more...

Changed in canonical-identity-provider:
status: New → Confirmed
importance: Undecided → Medium
Changed in canonical-identity-provider:
milestone: none → 2-factor-post-rollout
assignee: nobody → Stuart Metcalfe (stuartmetcalfe)
milestone: 2-factor-post-rollout → 2-factor-internal-rollout
Revision history for this message
Stuart Metcalfe (stuartmetcalfe) wrote :

From the same page, a 404 is produced if you attempt to go to your profile page.

Changed in canonical-identity-provider:
status: Confirmed → In Progress
Changed in canonical-identity-provider:
status: In Progress → Fix Committed
Changed in canonical-identity-provider:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.