Match Books dialogue doesn't like parentheses

Bug #1255671 reported by Eli Schwartz on 2013-11-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Charles Haley

Bug Description

Match Books:
Trapped (The Iron Druid Chronicles, Book Five)

(searches....)

gets the following error:

calibre, version 1.12.0
ERROR: Unhandled exception: <b>ParseException</b>:Extra characters at end
of search

calibre 1.12 isfrozen: True is64bit: False
Linux-3.2.0-34-generic-i686-with-debian-wheezy-sid Linux ('32bit', 'ELF')
('Linux', '3.2.0-34-generic', '#53-Ubuntu SMP Thu Nov 15 10:49:02 UTC 2012')
Python 2.7.5
Linux: ('debian', 'wheezy/sid', '')
Traceback (most recent call last):
File "site-packages/calibre/gui2/dialogs/match_books.py", line 129, in
do_search
File "site-packages/calibre/db/view.py", line 269, in search
File "site-packages/calibre/db/view.py", line 304, in search_getting_ids
File "site-packages/calibre/db/cache.py", line 57, in call_func_with_lock
File "site-packages/calibre/db/cache.py", line 889, in search
File "site-packages/calibre/db/search.py", line 846, in __call__
File "site-packages/calibre/db/search.py", line 883, in _do_search
File "site-packages/calibre/db/search.py", line 481, in parse
File "site-packages/calibre/utils/search_query_parser.py", line 324, in
parse
File "site-packages/calibre/utils/search_query_parser.py", line 338, in
_parse
File "site-packages/calibre/utils/search_query_parser.py", line 192, in
parse
ParseException: Extra characters at end of search

seems to be an issue with parentheses -- when I remove them, it searches
just fine.
The error message is the same if the last parenthesis is removed, fixed by
removing the parenthesis in the middle, so it's a little innacurate as well.

 affects calibre

-- Eli Schwartz

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers