Closed
Bug 839138
Opened 13 years ago
Closed 13 years ago
[prod] 500 error when searching for user - NoReverseMatch: Reverse for 'profile' with arguments
Categories
(Participation Infrastructure :: Phonebook, defect)
Participation Infrastructure
Phonebook
Tracking
(Not tracked)
VERIFIED
FIXED
2013-02-21
People
(Reporter: mbrandt, Unassigned)
References
()
Details
May be a duplicate of bug 737263 (and bug 736596)
Steps to reproduce:
1. goto https://mozillians.org/en-US/search?q=dc52f279269d00ddcc22b2e6bb47a812c140dfdc
Actual results:
Traceback (most recent call last):
File "/data/www/mozillians.org/mozillians/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/data/www/mozillians.org/mozillians/vendor/src/django/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/data/www/mozillians.org/mozillians/apps/phonebook/views.py", line 38, in wrapped
return f(request, *args, **kwargs)
File "/data/www/mozillians.org/mozillians/apps/phonebook/views.py", line 181, in search
args=[people[0].user.username]))
File "/data/www/mozillians.org/mozillians/vendor/src/funfactory/funfactory/urlresolvers.py", line 28, in reverse
url = django_reverse(viewname, urlconf, args, kwargs, prefix)
File "/data/www/mozillians.org/mozillians/vendor/src/django/django/core/urlresolvers.py", line 476, in reverse
return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
File "/data/www/mozillians.org/mozillians/vendor/src/django/django/core/urlresolvers.py", line 396, in _reverse_with_prefix
"arguments '%s' not found." % (lookup_view_s, args, kwargs))
NoReverseMatch: Reverse for 'profile' with arguments '(u'dc52f279269d00ddcc22b2e6bb47a812c140dfdc',)' and keyword arguments '{}' not found.
Comment 1•13 years ago
|
||
Funny, the username length limit in django models is 30 chars, mysql table in mozillians-dev has a 255 limit character and this username is 40 chars ?!
We also have the 30 char limit in urls.py to match usernames, so this is why this is not working.
I can remove the urls.py limit and it will work, but let's take note to clean up our user data.
Comment 2•13 years ago
|
||
Commits pushed to master at https://github.com/mozilla/mozillians
https://github.com/mozilla/mozillians/commit/adb4f0b2a848e15c9fef3df5b66ac52694992c33
[fix bug 839138] Allow url matching for usernames longer then 30 chars.
https://github.com/mozilla/mozillians/commit/7f32b9a678e61ba1fd26a7beec6daf247508feb1
Merge pull request #407 from glogiotatidis/839138
[fix bug 839138] Allow url matching for usernames longer then 30 chars.
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Target Milestone: --- → 2013-02-21
| Reporter | ||
Comment 3•13 years ago
|
||
QA verified on stage using steps to repro in comment 0
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•