Bugzilla – Attachment 127248 Details for
Bug 28236
Selecting database columns for system preferences in standard and dev installs is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28236: Allow access to json files from apache config
Bug-28236-Allow-access-to-json-files-from-apache-c.patch (text/plain), 1.19 KB, created by
Jonathan Druart
on 2021-11-03 12:26:42 UTC
(
hide
)
Description:
Bug 28236: Allow access to json files from apache config
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-11-03 12:26:42 UTC
Size:
1.19 KB
patch
obsolete
>From d5d8e21fcf3858566dc0494ab94c3e5a0c6d8519 Mon Sep 17 00:00:00 2001 >From: Johanna Raisa <johanna.raisa@gmail.com> >Date: Thu, 2 Sep 2021 12:22:51 +0300 >Subject: [PATCH] Bug 28236: Allow access to json files from apache config > >This patch grants json files from koha-tmpl. Otherwise systempreferences won't be able to fetch them. > >TEST PLAN: > >1) Try to set systempreference BorrowerUnwantedField. >2) The modal is empty. >3) Modify Apache configurations like in this patch. >4) Try again set the systempreference. >5) The modal should show list of parameters. > >Sponsored-by: Koha-Suomi Oy >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >JD Amended patch: replace tab characters and reword commit title >--- > etc/koha-httpd.conf | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf >index 62b5520afab..a1fef2a814d 100644 >--- a/etc/koha-httpd.conf >+++ b/etc/koha-httpd.conf >@@ -164,6 +164,9 @@ > # Secure internal stuff > <DirectoryMatch "__INTRANET_WWW_DIR__/.*/(modules|xslt|includes)"> > Require all denied >+ <FilesMatch "\.(json)$"> >+ Require all granted >+ </FilesMatch> > </DirectoryMatch> > > <IfModule mod_gzip.c> >-- >2.25.1
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 28236
:
124424
|
126645
| 127248