You are here: Foswiki>Tasks Web>Item9233 (17 Aug 2015, GeorgeClark)Edit Attach

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

pencil
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: minor
Applies To: Engine
Component: Configure, PlatformWindows
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
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 n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r9 - 17 Aug 2015, 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