Affiliates: 500 error 'AnonymousUser' object has no attribute 'pk

VERIFIED FIXED in 1.0

Status

VERIFIED FIXED
7 years ago
3 years ago

People

(Reporter: cmore, Assigned: mkelly)

Tracking

unspecified

Details

(Whiteboard: [dev], URL)

(Reporter)

Description

7 years ago
Traceback (most recent call last):

 File "/data/www/affiliates-dev.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-dev.allizom.org/affiliates-app/apps/banners/views.py", line 26, in customize
   affiliate_link = AFFILIATE_LINK % (request.user.pk, banner.pk)

AttributeError: 'AnonymousUser' object has no attribute 'pk'
(Reporter)

Updated

7 years ago
Assignee: nobody → mkelly
Whiteboard: [dev]

Updated

7 years ago
OS: Mac OS X → All
(Reporter)

Updated

7 years ago
Target Milestone: --- → 1.0
(Assignee)

Comment 1

7 years ago
Fixed in https://github.com/mozilla/affiliates/commit/357c30a60017f619077d997b91c57c6d892df7c2
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Verified FIXED:

[13:52:20.196] GET https://affiliates-dev.allizom.org/pl/banners/customize/1 [HTTP/1.1 200 OK 501ms]
Status: RESOLVED → VERIFIED
Hardware: x86 → All
Product: Websites → Firefox Affiliates
Product: Firefox Affiliates → Firefox Affiliates Graveyard
You need to log in before you can comment on or make changes to this bug.