NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item9233: initial configure 'system temporary dir' checker lies to the user

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Confirmed Engine Configure, PlatformWindows  
this is probably related to Item9232

on windows (strawberry, win2003), File::Spec fails to find a TMP setting, and so File::Tmp etc goto '/', resulting in an error message of :

System temporary directory   
Error: Cannot create a file in '\' (Invalid argument) - check the directory exists, and that permissions are correct, and the filesystem is not full. 

then after you save your initial configure, it somewhere sets the Tmpdir to

System temporary directory   C:\src\svn.foswiki.org\trunk\core\working

clearly, this again should be in a Configure::Value::Guesser :/

-- SvenDowideit - 01 Jul 2010

Suspect this is more due to a decision (or a test) of the tmp dir being made in the basic canity checks, before it's really ready (or required). I don't have strawberry perl, and it works fine with my AS perl, but I trust you so marking as confirmed.

-- CrawfordCurrie - 08 Jul 2010

There is also the semi-used undocumented ::cfg{TempfileDir} which is set by Foswiki.pm to "$Foswiki::cfg{WorkingDir}/tmp"

Control of the temporary directory is partly implemented. Maybe this should go further and actually become configurable with a Checker routine to guess the default and verify the setting. It appears that File::Spec is not reliable in all settings.

For security purposes it is useful to assign the temp location to a file system marked noexec, so I'd prefer to have more control of where temp files are placed.

-- GeorgeClark - 08 Jul 2010

Observed a similar error on an initial install of 1.1.3beta1 as well which was resolved after the initial save.

-- GeorgeClark - 13 Mar 2011

Defer to 1.1.5

-- GeorgeClark - 13 Dec 2011

Defer to 1.2

-- GeorgeClark - 05 Apr 2012
 

ItemTemplate edit

Summary initial configure 'system temporary dir' checker lies to the user
ReportedBy SvenDowideit
Codebase trunk
SVN Range
AppliesTo Engine
Component Configure, PlatformWindows
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease minor
ReleasedIn 1.2.0
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r7 - 05 Apr 2012, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads