Closed
Bug 620430
Opened 15 years ago
Closed 15 years ago
Passing empty string to sortby parameter causes 500
Categories
(support.mozilla.org :: Search, defect)
support.mozilla.org
Search
Tracking
(Not tracked)
VERIFIED
FIXED
2.4.1
People
(Reporter: paulc, Assigned: paulc)
References
()
Details
This does not happen with invalid input, just the empty string. Might be worth cleaning up the search form in general and using Django validation if possible.
Traceback (most recent call last):
File "/data/www/support.mozilla.com/kitsune/vendor/src/django/django/core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/data/www/support.mozilla.com/kitsune/apps/search/views.py", line 441, in search
sortby = int(request.GET.get('sortby', 0))
ValueError: invalid literal for int() with base 10: ''
| Assignee | ||
Comment 1•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 2•15 years ago
|
||
Verified all search forms do not generate traceback when submitting empty string.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•