Closed
Bug 702450
Opened 14 years ago
Closed 13 years ago
Admin accounts cause tracebacks on login
Categories
(Firefox Affiliates Graveyard :: affiliates.mozilla.org, defect)
Firefox Affiliates Graveyard
affiliates.mozilla.org
Tracking
(Not tracked)
VERIFIED
WORKSFORME
People
(Reporter: mbrandt, Unassigned)
References
()
Details
(Whiteboard: [dev])
Traceback (most recent call last):
File "/data/www/affiliates.allizom.org/affiliates-app/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/data/www/affiliates.allizom.org/affiliates-app/apps/shared/decorators.py", line 11, in decorator
return view_func(request, *args, **kwargs)
File "/data/www/affiliates.allizom.org/affiliates-app/apps/badges/views.py", line 54, in new_badge_step1
user_locale = request.user.userprofile.locale
File "/data/www/affiliates.allizom.org/affiliates-app/vendor/src/django/django/db/models/fields/related.py", line 239, in __get__
rel_obj = self.related.model._base_manager.using(db).get(**params)
File "/data/www/affiliates.allizom.org/affiliates-app/vendor/src/django/django/db/models/query.py", line 349, in get
% self.model._meta.object_name)
DoesNotExist: UserProfile matching query does not exist.
| Reporter | ||
Updated•14 years ago
|
Whiteboard: [rel:11/30/2011]
| Reporter | ||
Comment 1•14 years ago
|
||
It appears that this is the account that is linked to this 500 --> affiliates-dev@mozilla.com
Comment 2•14 years ago
|
||
The root cause of this is that admin accounts, which we create using the `manage.py createsuperuser` command, do not have UserProfiles because they are not created via the registration form.
A possible solution would be to disallow logins from admin users. That way, if a legitimate user gets this error, we will know that a real error has occurred (as opposed to catching all errors caused by this and suppressing).
Either way, this isn't a blocker for the release and I'm moving it out of the 11/30 launch.
Summary: [traceback] [stage] Exception: DoesNotExist: UserProfile matching query does not exist. → Admin accounts cause tracebacks on login
Whiteboard: [rel:11/30/2011] → [dev]
| Assignee | ||
Updated•13 years ago
|
Product: Websites → Firefox Affiliates
Comment 3•13 years ago
|
||
I don't know when, but this was fixed a while ago. I've been able to stay logged in as an admin user on all environments for a long time.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
| Reporter | ||
Updated•13 years ago
|
Resolution: WONTFIX → WORKSFORME
| Assignee | ||
Updated•10 years ago
|
Product: Firefox Affiliates → Firefox Affiliates Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•