Bug 17727

Summary: A lot of tests fail if SearchEngine is set to Elastic
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17726
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 12478    
Bug Blocks:    

Description Jonathan Druart 2016-12-06 09:55:32 UTC
The items.more_subfields_xml is set to random data (generated by TestBuilder), and so GetMarcBiblio does not manage to embed items (if needed).

The error is:
  :1: parser error : Start tag expected, '<' not found

More precisely it explodes in C4::Items::_parse_unlinked_item_subfields_from_xml when MARC::Record->new_from_xml is called with an invalid xml
Comment 1 Jonathan Druart 2016-12-06 09:57:21 UTC
I'd recomend to add a default value (undef/NULL) for items.more_subfields_xml in TestBuilder, not to modify everywhere we build a new item.
Comment 2 Jonathan Druart 2016-12-13 11:56:11 UTC
Will be fixed by bug 17726.

*** This bug has been marked as a duplicate of bug 17726 ***