[Rt-commit] rt branch, 4.2/upgrade-acl-abs-path, created. rt-4.2.16-5-gac92dfecd9
? sunnavy
sunnavy at bestpractical.com
Wed Nov 4 09:58:29 EST 2020
The branch, 4.2/upgrade-acl-abs-path has been created
at ac92dfecd9e9376faefa1243cdfb0dad6346f526 (commit)
- Log -----------------------------------------------------------------
commit ac92dfecd9e9376faefa1243cdfb0dad6346f526
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Aug 14 03:52:19 2020 +0800
Find full path for processing acl files on upgrade
Starting with perl 5.26, . (the current directory) is no
longer in @INC by default, which causes upgrade steps that insert
acl to fail when RT::Handle tries to require the file.
Set the full path so the acl file can be found.
This is to mirror changes in 8c61476b50, which is to fix indexes.
diff --git a/lib/RT/Handle.pm b/lib/RT/Handle.pm
index 379523a84a..494228c18f 100644
--- a/lib/RT/Handle.pm
+++ b/lib/RT/Handle.pm
@@ -467,6 +467,9 @@ sub InsertACL {
$path = $base_path;
}
+ # Get the full path since . is no longer in @INC after perl 5.24
+ $path = Cwd::abs_path($path);
+
local *acl;
do $path || return (0, "Couldn't load ACLs: " . $@);
my @acl = acl($dbh);
-----------------------------------------------------------------------
More information about the rt-commit
mailing list