Item10784: Configuration checker for DataDir is confused by some installation locations.
Priority: Low
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: Configure
Branches:
--
WilliSchiegel - 24 May 2011
Configuration checker shows the message "missing
WebPreferences Topic" for the data directory (
DataDir) although there are actually no missing
WebPreferences Topic
The following fix might help - have not tested it yet on a system with data in the path - but it doesn't cause issues with my system.
diff --git a/core/lib/Foswiki/Configure/Checker.pm b/core/lib/Foswiki/Configure/Checker.pm
index ca54d9d..a814e19 100755
--- a/core/lib/Foswiki/Configure/Checker.pm
+++ b/core/lib/Foswiki/Configure/Checker.pm
@@ -225,7 +225,7 @@ sub checkTreePerms {
}
}
- if ( $perms =~ /p/ && $path =~ /data\/(.+)$/ && -d $path ) {
+ if ( $perms =~ /p/ && $path =~ /\Q$Foswiki::cfg{DataDir}\E\/(.+)$/ && -d $path ) {
unless ( -e "$path/$Foswiki::cfg{WebPrefsTopicName}.txt") {
$permErrs .= " $path missing $Foswiki::cfg{WebPrefsTopicName} Topic" . CGI::br();
$this->{missingFile}++;
--
GeorgeClark - 25 May 2011
Tested fix with data appearing in multiple places in path - seems to work. Committed to trunk for now.
--
GeorgeClark - 25 May 2011