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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/