Bug 41102: Error 500 on the About page when biblioserver Zebra configuration is missing
When either the <listen id=biblioserver> entry or the
<server id=biblioserver listenref=biblioserver> section
is not present in koha-conf.xml, the Staff interface > About page
triggers a 500 Internal Server Error.
Test plan:
1. Edit koha-conf.xml and Comment out:
<!--<listen id="biblioserver">unix:/path/to/zebradb/bibliosocket</listen>-->
2. Restart Apache: sudo systemctl restart apache2 (or restart_all)
3. Go to Intranet > About
==> Internal Server Error (500)
4. Now restore the <listen> line and instead comment out the entire
<server id=biblioserver listenref=biblioserver>...</server> block.
(Note that the commenting around <!-- The stuff below is used to enable SRU...
interferes with adding a closing comment after </server> -
close the comment before that section and add a comment around </server>.)
5. Repeat step 2, 3
==> Internal Server Error (500)
6. Apply the patch
7. Repeat step 2, 3
==> There is no Error (500)
Note: Zebra status: Error message from Zebra: 10004
8. Uncomment <server id=biblioserver listenref=biblioserver> </server>
and Repeat Step 1
9. Repeat step 2, 3
==> There is no Error (500)
Note: Zebra status: Zebra server seems not to be available. Is it started?
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 03fc6994a5)
Signed-off-by: Chloé Zermatten <chloe.zermatten@openfifth.co.uk>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
(cherry picked from commit 1b837562b2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
5e0d278eab
commit
0228735b8b
|
|
@ -562,7 +562,8 @@ sub _new_Zconn {
|
|||
$syntax = 'xml';
|
||||
$elementSetName = 'marcxml';
|
||||
|
||||
my $host = _common_config($server, 'listen')->{content};
|
||||
my $host = _common_config( $server, 'listen' );
|
||||
$host = $host->{content};
|
||||
my $serverinfo = _common_config($server, 'serverinfo');
|
||||
my $user = $serverinfo->{user};
|
||||
my $password = $serverinfo->{password};
|
||||
|
|
@ -572,7 +573,8 @@ sub _new_Zconn {
|
|||
$o->option(user => $user) if $user && $password;
|
||||
$o->option(password => $password) if $user && $password;
|
||||
$o->option(async => 1) if $async;
|
||||
$o->option(cqlfile=> _common_config($server, 'server')->{cql2rpn});
|
||||
my $server_conf = _common_config( $server, 'server' );
|
||||
$o->option( cqlfile => $server_conf->{cql2rpn} );
|
||||
$o->option(cclfile=> $serverinfo->{ccl2rpn});
|
||||
$o->option(preferredRecordSyntax => $syntax);
|
||||
$o->option(elementSetName => $elementSetName) if $elementSetName;
|
||||
|
|
|
|||
Loading…
Reference in New Issue