You are here: Foswiki>Tasks Web>Item10784 (17 Dec 2011, GeorgeClark)Edit Attach

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

pencil
Priority: Low
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: Configure
Branches:
Reported By: WilliSchiegel
Waiting For:
Last Change By: GeorgeClark
-- 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 distro:08da21f6f0f4 distro:1ce8a0325ad4
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy