3848: Reviewboard 2.0.15 search for a number leads to internal error.

der.*****@gmai***** (Google Code) (Is this you? Claim this profile.)
April 16, 2015
3820
2.0.15

*What's the URL of the page containing the problem?*
reviewboard/search/?q=09760642

*What steps will reproduce the problem?*
1. Search in the search box for a pure number e.g. 09760642
2. You will land on page: reviewboard/search/?q=09760642

*What is the expected output? What do you see instead?*
Expected: search for number 09760642
Error: Something broke! (Error 500)

- Exception thrown for user admin_new at reviewboard/search/?q=09760642

'RBSearchView' object has no attribute 'active_filters'
Traceback (most recent call last):
  File "D:\Programs\Python27\lib\site-packages\django-1.6.11-py2.7.egg\django\core\handlers\base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "D:\Programs\Python27\lib\site-packages\reviewboard-2.0.15-py2.7.egg\reviewboard\accounts\decorators.py", line 23, in _check
    return view_func(*args, **kwargs)
  File "D:\Programs\Python27\lib\site-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 "D:\Programs\Python27\lib\site-packages\reviewboard-2.0.15-py2.7.egg\reviewboard\search\views.py", line 221, in search
    return search_view(*args, **kwargs)
  File "D:\Programs\Python27\lib\site-packages\reviewboard-2.0.15-py2.7.egg\reviewboard\search\views.py", line 83, in __call__
    return super(RBSearchView, self).__call__(request)
  File "D:\Programs\Python27\lib\site-packages\django_haystack-2.3.1-py2.7.egg\haystack\views.py", line 50, in __call__
    return self.create_response()
  File "D:\Programs\Python27\lib\site-packages\reviewboard-2.0.15-py2.7.egg\reviewboard\search\views.py", line 209, in create_response
    context.update(self.extra_context())
  File "D:\Programs\Python27\lib\site-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'

*What operating system are you using? What browser?*
Windows Server 2008 R2 Chrome

*Please provide any additional information below.
Workaround is to search for "09760642", therefore the problem should not be too hard to fix.
david
#1 david
This is already fixed in git and will ship in 2.0.16