Bugzilla – Attachment 16304 Details for
Bug 9832
QueryParser causes software error if koha-conf.xml has not been updated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9832: avert software error with QP enabled and misconfigured
Bug-9832-avert-software-error-with-QP-enabled-and-.patch (text/plain), 1.28 KB, created by
Paul Poulain
on 2013-03-18 18:33:50 UTC
(
hide
)
Description:
Bug 9832: avert software error with QP enabled and misconfigured
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2013-03-18 18:33:50 UTC
Size:
1.28 KB
patch
obsolete
>From 59415242a0f44f43ccf0e4dae083bfae7a3bac92 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Sun, 17 Mar 2013 15:44:56 -0400 >Subject: [PATCH] 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> >--- > C4/Context.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 1488413..4385bff 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -956,7 +956,10 @@ sub queryparser { > $context->{"queryparser"} = &_new_queryparser(); > } > >- return $context->{"queryparser"}->new; >+ return >+ defined( $context->{"queryparser"} ) >+ ? $context->{"queryparser"}->new >+ : undef; > } > > =head2 _new_queryparser >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9832
:
16205
|
16206
| 16304