Bugzilla – Attachment 102887 Details for
Bug 25109
Add execution locking to Koha::Script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25109: (QA follow-up) Add a test for lockdir writable in about.pl
Bug-25109-QA-follow-up-Add-a-test-for-lockdir-writ.patch (text/plain), 1.95 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-04-13 18:48:01 UTC
(
hide
)
Description:
Bug 25109: (QA follow-up) Add a test for lockdir writable in about.pl
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-04-13 18:48:01 UTC
Size:
1.95 KB
patch
obsolete
>From 61c48fd7742c9fe1b7142a1ae3c155f2aa8d29e5 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 13 Apr 2020 15:45:50 -0300 >Subject: [PATCH] Bug 25109: (QA follow-up) Add a test for lockdir writable in > about.pl > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > about.pl | 8 ++++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 7 +++++++ > 2 files changed, 15 insertions(+) > >diff --git a/about.pl b/about.pl >index 85e55cb0c0..dc25550fd2 100755 >--- a/about.pl >+++ b/about.pl >@@ -214,6 +214,14 @@ if ( ! defined C4::Context->config('lockdir') ) { > error => 'lockdir_entry_missing' > } > } >+else { >+ unless ( -w C4::Context->config('lockdir') ) { >+ push @xml_config_warnings, { >+ error => 'lockdir_not_writable', >+ lockdir => C4::Context->config('lockdir') >+ } >+ } >+} > > if ( ! defined C4::Context->config('upload_path') ) { > if ( Koha::Config::SysPrefs->find('OPACBaseURL')->value ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index 341a618232..d8f0dfa01b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -366,6 +366,13 @@ > add it, pointing to your Koha instance's lock dir. > </td> > </tr> >+ [% ELSIF config_entry.error == 'lockdir_not_writable' %] >+ <tr> >+ <th scope="row"><b>Warning</b></th> >+ <td>The configured <lockdir> entry in your koha-conf.xml file points to a >+ non-writable directory ([% config_entry.lockdir | html %]). >+ </td> >+ </tr> > [% ELSIF config_entry.error == 'uploadpath_entry_missing' %] > <tr> > <th scope="row"><b>Warning</b></th> >-- >2.26.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 25109
:
102757
|
102758
|
102759
|
102760
|
102761
|
102762
|
102814
|
102815
|
102816
|
102817
|
102840
|
102841
|
102842
|
102843
|
102856
|
102887
|
102904
|
102905
|
102906
|
102907
|
102908
|
102909