QueryParser requires a configuration file. If koha-conf.xml does not point to that configuration file, you will get a software error when you try to search with QueryParser enabled.
Created attachment 16205 [details] [review] Bug 9832: avert software error with QP enabled and misconfigured QueryParser requires a configuration file. If koha-conf.xml does not point to that configuration file, you will get a software error when you try to search with QueryParser enabled. Until this patch. To test: 1) Comment out the <queryparser_config> line in your koha-conf.xml 2) Turn on UseQueryParser 3) Do a search, watch it explode 4) Apply patch 5) Do search again, watch it work 6) Sign off on patch
Created attachment 16206 [details] [review] Bug 9832: avert software error with QP enabled and misconfigured QueryParser requires a configuration file. If koha-conf.xml does not point to that configuration file, you will get a software error when you try to search with QueryParser enabled. Until this patch. To test: 1) Comment out the <queryparser_config> line in your koha-conf.xml 2) Turn on UseQueryParser 3) Do a search, watch it explode 4) Apply patch 5) Do search again, watch it work 6) Sign off on patch Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Works as expected, nothing explodes anymore
QA comment * trivial patch * passes koha-qa.pl * no side effect I can think of
Created attachment 16304 [details] [review] Bug 9832: avert software error with QP enabled and misconfigured QueryParser requires a configuration file. If koha-conf.xml does not point to that configuration file, you will get a software error when you try to search with QueryParser enabled. Until this patch. To test: 1) Comment out the <queryparser_config> line in your koha-conf.xml 2) Turn on UseQueryParser 3) Do a search, watch it explode 4) Apply patch 5) Do search again, watch it work 6) Sign off on patch Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Works as expected, nothing explodes anymore Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
QA comment : note that the error does not occur if your koha-conf.xml file does not have the <queryparser> line at all.
This patch has been pushed to master.