Bugzilla – Attachment 83611 Details for
Bug 18585
Connect to RDF triplestore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18585: Missing triplestore configuration causes warnings in logs
Bug-18585-Missing-triplestore-configuration-causes.patch (text/plain), 1.09 KB, created by
Josef Moravec
on 2019-01-03 09:33:54 UTC
(
hide
)
Description:
Bug 18585: Missing triplestore configuration causes warnings in logs
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-01-03 09:33:54 UTC
Size:
1.09 KB
patch
obsolete
>From c1e7e93d81634e8c10a36e2ec730fba20de2c813 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Sun, 16 Sep 2018 18:26:17 +0000 >Subject: [PATCH] Bug 18585: Missing triplestore configuration causes warnings > in logs > >This patch checks that the triplestore configuration is defined >before trying to find it and read it. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > C4/Context.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 35231d799f..0376cd01ed 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -777,7 +777,7 @@ sub triplestore { > my $triplestore = ( $context->{triplestore} && $context->{triplestore}->{$name} ) ? $context->{triplestore}->{$name} : undef; > if ( ! $triplestore ){ > my $config_file = $context->config('triplestore_config'); >- if ( -f $config_file ){ >+ if ( $config_file && -f $config_file ){ > my $config = YAML::LoadFile($config_file); > if ($config && $name){ > my $new_triplestore = $self->_new_triplestore($config,$name); >-- >2.11.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 18585
:
63393
|
63403
|
63411
|
63412
|
63413
|
64252
|
64253
|
69632
|
71016
|
73897
|
78568
|
78975
|
83610
| 83611