Foswiki on GitHub is open for business! Next release meeting: Monday September 15, 1300Z

Item10784: Configuration checker for DataDir is confused by some installation locations.

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Low Closed Engine Configure  
-- 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
 

ItemTemplate edit

Summary Configuration checker for DataDir is confused by some installation locations.
ReportedBy WilliSchiegel
Codebase 1.1.3, trunk
SVN Range
AppliesTo Engine
Component Configure
Priority Low
CurrentState Closed
WaitingFor
Checkins Foswikirev:11734 Foswikirev:11794
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r7 - 17 Dec 2011, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License