3820: search errors with 500 if a number is used as input (e.g. bug#)

tarz****@gmai***** (Google Code) (Is this you? Claim this profile.)
david
david
April 9, 2015
3848
What version are you running?
2.0.15


What's the URL of the page containing the problem?
http://myhostingsite/search/?q=20559874

What steps will reproduce the problem?
1. search for a (bug) number , e.g. 20559874
2.
3.

What is the expected output? What do you see instead?
Expected output is search result
We see :
Something broke! (Error 500)

It appears something broke when you tried to go to here. This is either a bug in Review Board or a server configuration error. Please report this to your administrator. 

What operating system are you using? What browser?
Windows 7 64bit  Enterprise
Firefox
can be reproduced on any browser+OS combo though

Please provide any additional information below.

Error from the mail to admin, resp. log is:
2015-03-25 08:25:00,811 - ERROR -  - Exception thrown for user XXX at http://XXXXXX/search/?q=20559874

'RBSearchView' object has no attribute 'active_filters'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.15-py2.7.egg/reviewboard/accounts/decorators.py", line 23, in _check
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.15-py2.7.egg/reviewboard/site/decorators.py", line 35, in _check
    return view_func(request, local_site=local_site, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.15-py2.7.egg/reviewboard/search/views.py", line 221, in search
    return search_view(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.15-py2.7.egg/reviewboard/search/views.py", line 83, in __call__
    return super(RBSearchView, self).__call__(request)
  File "/usr/local/lib/python2.7/dist-packages/django_haystack-2.1.0-py2.7.egg/haystack/views.py", line 50, in __call__
    return self.create_response()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.15-py2.7.egg/reviewboard/search/views.py", line 209, in create_response
    context.update(self.extra_context())
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.15-py2.7.egg/reviewboard/search/views.py", line 180, in extra_context
    for filter_type in self.FILTER_TYPES
AttributeError: 'RBSearchView' object has no attribute 'active_filters'
david
#1 david
  • +PendingReview
  • +david
david
#2 david
Fixed in release-2.0.x (1e74cd7). Thanks!
  • -PendingReview
    +Fixed