Bugzilla – Attachment 60700 Details for
Bug 18175
Makefile sets koha-httpd api path incorrectly for standard installs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18175: Use Makefile variable for api path.
Bug-18175-Use-Makefile-variable-for-api-path.patch (text/plain), 1.23 KB, created by
Alex Sassmannshausen
on 2017-02-27 11:45:16 UTC
(
hide
)
Description:
Bug 18175: Use Makefile variable for api path.
Filename:
MIME Type:
Creator:
Alex Sassmannshausen
Created:
2017-02-27 11:45:16 UTC
Size:
1.23 KB
patch
obsolete
>From 8b2872f7d0c61c7b64dd795635204d0c02d7924a Mon Sep 17 00:00:00 2001 >From: Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com> >Date: Mon, 27 Feb 2017 12:40:42 +0100 >Subject: [PATCH] Bug 18175: Use Makefile variable for api path. > >* etc/koha-httpd.conf: Use __API_CGI_DIR__ instead of > %{DOCUMENT_ROOT}/../api. > >Test plan: > >Confirming the problem: >- Do a standard install of Koha >- Test any REST API route. >- The route will error out. > >Confirming the resolution: >- Apply this patch. >- Do a standard install of Koha >- Test any REST API route. >- The route will work. > >Confirming no regression: >- Apply this patch. >- Do a dev install of Koha >- Test any REST API route. >- The route will work. >--- > etc/koha-httpd.conf | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf >index 2747791b50..471ea3a6c5 100644 >--- a/etc/koha-httpd.conf >+++ b/etc/koha-httpd.conf >@@ -123,7 +123,7 @@ > RewriteBase /api/ > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d >- RewriteCond %{DOCUMENT_ROOT}/../api/$1/app.pl -f >+ RewriteCond __API_CGI_DIR__/$1/app.pl -f > RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L] > </Directory> > </IfModule> >-- >2.11.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 18175
: 60700