Bugzilla – Attachment 46850 Details for
Bug 15188
remove_unused_authorities.pl will delete all authorities if zebra is not running
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15188: Do not remove unused auths if zebra is not reachable
Bug-15188-Do-not-remove-unused-auths-if-zebra-is-n.patch (text/plain), 1.22 KB, created by
Jonathan Druart
on 2016-01-19 08:58:21 UTC
(
hide
)
Description:
Bug 15188: Do not remove unused auths if zebra is not reachable
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-01-19 08:58:21 UTC
Size:
1.22 KB
patch
obsolete
>From c36a5e61e0b7c7f74f46e9fb81259985f92225fd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 19 Jan 2016 08:55:49 +0000 >Subject: [PATCH] Bug 15188: Do not remove unused auths if zebra is not > reachable > >Other conn errors should be checked (wrong user/pwd, etc.) > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > misc/migration_tools/remove_unused_authorities.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/misc/migration_tools/remove_unused_authorities.pl b/misc/migration_tools/remove_unused_authorities.pl >index af8897a..eec2155 100755 >--- a/misc/migration_tools/remove_unused_authorities.pl >+++ b/misc/migration_tools/remove_unused_authorities.pl >@@ -45,8 +45,11 @@ if ($test) { > print "testing only, authorities will not be deleted.\n"; > } > >-if (C4::Context->Zconn("biblioserver",0)->errcode() == 10000) { >+my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode(); >+if ( $errZebraConnection == 10000 ) { > die "Zebra server seems not to be available. This script needs Zebra runs." >+} elsif ( $errZebraConnection ) { >+ die "Error from Zebra: $errZebraConnection"; > } > > my $dbh=C4::Context->dbh; >-- >2.1.0
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 15188
:
45257
|
46018
|
46741
|
46849
| 46850