]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1239582 - The new REST API fails to work properly under mod_perl due to improper...
authorDavid Lawrence <dkl@mozilla.com>
Thu, 14 Jan 2016 21:20:18 +0000 (21:20 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Thu, 14 Jan 2016 21:20:18 +0000 (21:20 +0000)
r=dylan

Bugzilla/API/1_0/Server.pm
Bugzilla/Install/Requirements.pm

index d9780bd633e4fd00889af5fdf2afaad6f470be3e..743af59a1c901b1f5b0c6f1148b106c5e1d9b153 100644 (file)
@@ -20,7 +20,7 @@ use Bugzilla::Hook;
 use Bugzilla::Util qw(datetime_from trick_taint);
 
 use File::Basename qw(basename);
-use File::Glob qw(bsd_glob);
+use File::Glob qw(:bsd_glob);
 use List::MoreUtils qw(none uniq);
 use MIME::Base64 qw(decode_base64 encode_base64);
 use Moo;
@@ -359,8 +359,8 @@ sub _find_resource {
             $api_namespace, 'API', $api_ext_version, 'Resource', '*.pm');
     }
     else {
-        $resource_modules = File::Spec->catdir('Bugzilla','API', $api_version,
-            'Resource', '*.pm');
+        $resource_modules = File::Spec->catdir(bz_locations()->{cgi_path},
+            'Bugzilla','API', $api_version, 'Resource', '*.pm');
     }
 
     # Load in the WebService modules from the appropriate version directory
index a48778c1b6eac784bf1ffca9e3649ee364f58f3f..ccd3a649a9858cf042d77548efa3449ab5325425 100644 (file)
@@ -492,8 +492,8 @@ use constant FEATURE_FILES => (
     jsonrpc       => ['Bugzilla/WebService/Server/JSONRPC.pm', 'jsonrpc.cgi'],
     xmlrpc        => ['Bugzilla/WebService/Server/XMLRPC.pm', 'xmlrpc.cgi',
                       'Bugzilla/WebService.pm', 'Bugzilla/WebService/*.pm'],
-    rest          => ['Bugzilla/WebService/Server/REST.pm', 'rest.cgi',
-                      'Bugzilla/WebService/Server/REST/Resources/*.pm'],
+    rest          => ['Bugzilla/API/Server.pm', 'rest.cgi',
+                      'Bugzilla/API/*/Server.pm', 'Bugzilla/API/*/Resource/*.pm'],
     psgi          => ['app.psgi'],
     moving        => ['importxml.pl'],
     auth_ldap     => ['Bugzilla/Auth/Verify/LDAP.pm'],