[Bug 42533] New: Double quotes can break stage_file.pl
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42533 Bug ID: 42533 Summary: Double quotes can break stage_file.pl Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: lisette@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Splitting off from Bug 40340: (In reply to Enica Davis from comment #1)
Additionally, if you include double quotes in 245$a, stage_file.pl will time out. See the test MARC file #2 in the attachment.
Furthermore, if the tag you are matching on contains something like {dollar}, which is commonly found in 020$c, stage_file will time out.
The error:
[query_shard_exception] Failed to parse query [(title:""---And Ladies of the Club" /")], with: {"index":"koha_utstatelibdivtest_biblios","index_uuid": "_AD3tsfnTpC9t4mncAArSw"}, called from sub Search::Elasticsearch::Role::Client::Direct::__ANON__ at /usr/share/koha/lib/Koha/SearchEngine/Elasticsearch/Search.pm line 101. With vars: {'body' => {'error' => {'phase' => 'query','grouped' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),'failed_shards' => [{'node' => 'Q3tYO6wsTXKbYv20ptCAKw','index' => 'koha_utstatelibdivtest_biblios','shard' => 0,'reason' => {'reason' => 'Failed to parse query [(title:""---And Ladies of the Club" /")]','index_uuid' => '_AD3tsfnTpC9t4mncAArSw','type' => 'query_shard_exception','caused_by' => {'caused_by' => {'reason' => 'Encountered " "-" "- "" at line 1, column 10. Was expecting one of: <BAREOPER> ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... <REGEXPTERM> ... "[" ... "{" ... <NUMBER> ... <TERM> ... "*" ... ','type' => 'parse_exception'},'reason' => 'Cannot parse \'(title:""---And Ladies of the Club" /")\': Encountered " "-" "- "" at line 1, column 10. Was expecting one of: <BAREOPER> ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... <REGEXPTERM> ... "[" ... "{" ... <NUMBER> ... <TERM> ... "*" ...
-- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42533 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |BLOCKED Assignee|koha-bugs@lists.koha-commun |lisette@bywatersolutions.co |ity.org |m Depends on| |40340 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40340 [Bug 40340] Backslashes next to a subfield and double-quotes can break stage_file.pl -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42533 --- Comment #1 from Lisette Scheer <lisette@bywatersolutions.com> --- Created attachment 198649 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198649&action=edit Double Quote record -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42533 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |enica@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42533 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #2 from David Cook <dcook@prosentient.com.au> --- Well that's not good. {dollar} is something you might see in MarcEdit but it's not something I'd expect to see in MARC/MARCXML... Seems like something isn't properly encoding data at some stage... -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org