Closed Bug 712501 Opened 14 years ago Closed 12 years ago

Error generating activation key for unicode email

Categories

(Firefox Affiliates Graveyard :: affiliates.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: osmose, Unassigned)

References

()

Details

(Whiteboard: [dev])

Traceback (most recent call last): File "/data/www/affiliates.mozilla.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.mozilla.org/affiliates-app/vendor/src/django-session-csrf/session_csrf/__init__.py", line 107, in wrapper response = f(request, *args, **kw) File "/data/www/affiliates.mozilla.org/affiliates-app/apps/users/views.py", line 54, in register form.cleaned_data['registration_password']) File "/data/www/affiliates.mozilla.org/affiliates-app/apps/users/models.py", line 89, in create_profile activation_key = hmac.new(salt, email, hashlib.sha1).hexdigest() File "/usr/lib/python2.6/hmac.py", line 133, in new return HMAC(key, msg, digestmod) File "/usr/lib/python2.6/hmac.py", line 75, in __init__ self.update(msg) File "/usr/lib/python2.6/hmac.py", line 83, in update self.inner.update(msg) UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 13: ordinal not in range(128)
Assignee: mkelly → nobody
Product: Websites → Firefox Affiliates
Old-style auth is going away in bug 945867. WONTFIX!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
yaya for wontfix .. verified
Status: RESOLVED → VERIFIED
Product: Firefox Affiliates → Firefox Affiliates Graveyard
You need to log in before you can comment on or make changes to this bug.