Item968: Some problems with renaming SystemWebName
Priority: Normal
Current State: No Action Required
Released In:
Target Release:
Applies To: Engine
Component: Configure, Documentation
Branches:
Rename the Web System
mv data/System data/FWsystem
mv pub/System pub/FWsystem
$Foswiki::cfg{SystemWebName} = 'FWsystem';
but there are more lines with the name System:
$Foswiki::cfg{TemplatePath} =
$Foswiki::cfg{Plugins}{WebSearchPath} =
...
'System' => 'TWiki',
'TWiki' => 'System'
...
$Foswiki::cfg{AuthRealm} =
I move up the line before the first hardcoded
System
$Foswiki::cfg{SystemWebName} = 'FWsystem';
and change all with hardcoded
System to the
$Foswiki::cfg{SystemWebName} .
As I can see it works!
The generated LocalSite.cfg should be tuned (if possible)
Second I tried to install the Extension TopicUserMappingContrib.
It recreate the System web and writes some topic there:
foswiki]# ls data/System/
BulkRegistration.txt ChangeEmailAddress.txt LoginName.txt NewUserTemplate.txt TopicUserMappingContrib.txt UserRegistration.txt UsersTemplate.txt
BulkResetPassword.txt ChangePassword.txt ManagingUsers.txt ResetPassword.txt UserForm.txt UserSetting.txt UserToolsCategory.txt
After that it installs the topic correct to the right place - here in
FWsystem.
The install should be fixed not to use the hardcoded System web. Perhaps workingdir could be used for unpacking and cleaned after install is complete.
I think this is actually a repeat of another bug
Item2221, addressed in
Item2333, where $Foswiki::cfg vars were being expanded in
LocalSite.cfg, meaning a subsequent change to the driving var wouldn't bubble through.
Foswiki.spec is correct (uses the symbolic name) so pretty sure this is fixed in trunk. Marking as no-action.
--
CrawfordCurrie - 07 Nov 2009