https://bugs.gpodder.org/show_bug.cgi?id=790
Summary: Searching for " " (single space) raises a
ParseException
Product: my.gPodder.org
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: blocker
Priority: low
Component: Server-side API Backend
AssignedTo: [email protected]
ReportedBy: [email protected]
You can reproduce this by searching for space and selecting "podcasts" as the
only option for searching the database.
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/django/core/handlers/base.py", line 92, in
get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/haystack/views.py", line 45, in
__call__
return self.create_response()
File "/usr/lib/python2.5/site-packages/haystack/views.py", line 107, in
create_response
(paginator, page) = self.build_page()
File "/usr/lib/python2.5/site-packages/haystack/views.py", line 89, in
build_page
page = paginator.page(self.request.GET.get('page', 1))
File "/usr/lib/pymodules/python2.5/django/core/paginator.py", line 37, in
page
number = self.validate_number(number)
File "/usr/lib/pymodules/python2.5/django/core/paginator.py", line 28, in
validate_number
if number > self.num_pages:
File "/usr/lib/pymodules/python2.5/django/core/paginator.py", line 60, in
_get_num_pages
if self.count == 0 and not self.allow_empty_first_page:
File "/usr/lib/pymodules/python2.5/django/core/paginator.py", line 48, in
_get_count
self._count = self.object_list.count()
File "/usr/lib/python2.5/site-packages/haystack/query.py", line 375, in count
return len(clone)
File "/usr/lib/python2.5/site-packages/haystack/query.py", line 48, in
__len__
self._result_count = self.query.get_count()
File "/usr/lib/python2.5/site-packages/haystack/backends/__init__.py", line
399, in get_count
self.run()
File "/usr/lib/python2.5/site-packages/haystack/backends/__init__.py", line
354, in run
results = self.backend.search(final_query, **kwargs)
File "/usr/lib/python2.5/site-packages/haystack/backends/__init__.py", line
47, in wrapper
return func(obj, query_string, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/haystack/backends/whoosh_backend.py",
line 291, in search
parsed_query = self.parser.parse(query_string)
File
"/usr/lib/python2.5/site-packages/Whoosh-0.3.9-py2.5.egg/whoosh/qparser.py",
line 210, in parse
ast = self.parser(input)[0]
File
"/usr/lib/python2.5/site-packages/Whoosh-0.3.9-py2.5.egg/whoosh/support/pyparsing.py",
line 1076, in parseString
raise exc
ParseException: Expected end of text (at char 0), (line:1, col:1)
--
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs