Closed
Bug 904862
Opened 12 years ago
Closed 12 years ago
[traceback] 500 Error: ValueError: invalid literal for int() with base 10: '20"'
Categories
(Participation Infrastructure :: Phonebook, defect)
Participation Infrastructure
Phonebook
Tracking
(Not tracked)
VERIFIED
FIXED
2013-09-12
People
(Reporter: mbrandt, Assigned: giorgos)
References
()
Details
(Whiteboard: [kb=1083571] [traceback])
Attachments
(1 file)
345.24 KB,
image/png
|
Details |
Steps to reproduce
0. goto https://mozillians.org/search/?limit=20%22;%20waitfor%20delay%20%270:0:7.55%27%20--%20&page=21&q
Acutal:
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 "/usr/lib64/python2.6/site-packages/newrelic-1.10.2.38/newrelic/api/object_wrapper.py", line 220, in __call__
self._nr_instance, args, kwargs)
File "/usr/lib64/python2.6/site-packages/newrelic-1.10.2.38/newrelic/hooks/framework_django.py", line 475, in wrapper
return wrapped(*args, **kwargs)
File "/data/www/mozillians.org/mozillians/apps/phonebook/views.py", line 190, in search
if form.is_valid():
File "/data/www/mozillians.org/mozillians/vendor/src/django/django/forms/forms.py", line 124, in is_valid
return self.is_bound and not bool(self.errors)
File "/data/www/mozillians.org/mozillians/vendor/src/django/django/forms/forms.py", line 115, in _get_errors
self.full_clean()
File "/data/www/mozillians.org/mozillians/vendor/src/django/django/forms/forms.py", line 270, in full_clean
self._clean_fields()
File "/data/www/mozillians.org/mozillians/vendor/src/happyforms/happyforms/__init__.py", line 32, in _clean_fields
value = getattr(self, 'clean_%s' % name)()
File "/data/www/mozillians.org/mozillians/apps/phonebook/forms.py", line 36, in clean_limit
elif not REGEX_NUMERIC.match(str(limit)) or int(limit) < 1:
ValueError: invalid literal for int() with base 10: '20"'
Assignee | ||
Updated•12 years ago
|
Whiteboard: [traceback] → [kb=1083571] [traceback]
Assignee | ||
Comment 1•12 years ago
|
||
For some reason googlebot hits this url often. It should be fixed anyway, but fortunately it's not a real person who gets the error.
Thanks for reporting Matt!
Assignee: nobody → giorgos
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•12 years ago
|
||
That darn googlebot ;) thanks for looking it this Giorgos
Comment 3•12 years ago
|
||
Commits pushed to master at https://github.com/mozilla/mozillians
https://github.com/mozilla/mozillians/commit/60b5957445ae67f8aebcaa21fe63f8fc19fdaae2
[fix bug 904862] Use IntegerField in SearchForm.
- Use IntegerField in SearchForm.
- Update HTML of Search.
https://github.com/mozilla/mozillians/commit/2113f509c742d4c27180eb72c72d6f864646f1b3
Merge pull request #584 from glogiotatidis/904826
[fix bug 904862] Use IntegerField in SearchForm.
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 4•12 years ago
|
||
QA verified on stage - the googlebot has been tamed :)
https://mozillians.allizom.org/en-US/search/?limit=20%22;%20waitfor%20delay%20%270:0:7.55%27%20--%20&page=21&q
Reporter | ||
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
Target Milestone: --- → 2013-09-12
You need to log in
before you can comment on or make changes to this bug.
Description
•