[Koha-bugs] [Bug 18945] UseQueryParser system preference breaks subject searches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 18 17:00:58 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18945

Galen Charlton <gmcharlt at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gmcharlt at gmail.com

--- Comment #1 from Galen Charlton <gmcharlt at gmail.com> ---
I can reproduce this bug when UseICU is also on.

Among other effects, UseICU will use {} rather than "" to quote a subject
phrase when building the subject headings link (see bug 7092). However, a
search like 

su:{Cats}

triggers an infinite loop bug in OpenILS::QueryParser->decompose().

The following warnings emitted by QueryParser with debug logging turned on
gives an idea of what's going on:

Start of the loop. last_type: , joiner: &, struct:
Koha::QueryParser::Driver::PQF::query_plan=HASH(0x40e1618)
Encountered class change: subject|subject#su
Start of the loop. last_type: , joiner: &, struct:
Koha::QueryParser::Driver::PQF::query_plan=HASH(0x40e1618)
Encountered atom: {Wizards
Remainder: } 
Start of the loop. last_type: , joiner: &, struct:
Koha::QueryParser::Driver::PQF::query_plan=HASH(0x40e1618)
Start of the loop. last_type: , joiner: &, struct:
Koha::QueryParser::Driver::PQF::query_plan=HASH(0x40e1618)
Start of the loop. last_type: , joiner: &, struct:
Koha::QueryParser::Driver::PQF::query_plan=HASH(0x40
... above repeats indefinitely


This bug appears to be more or less identical to one of the issues fixed by
Evergreen bug https://bugs.launchpad.net/evergreen/+bug/1251359.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list