You are here: Foswiki>Tasks Web>Item968 (07 Nov 2009, CrawfordCurrie)Edit Attach

Item968: Some problems with renaming SystemWebName

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release:
Applies To: Engine
Component: Configure, Documentation
Branches:
Reported By: GuentherFischer
Waiting For:
Last Change By: CrawfordCurrie

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)

Configure - Install Extension

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

ItemTemplate edit

Summary Some problems with renaming SystemWebName
ReportedBy GuentherFischer
Codebase 1.0.0
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component Configure, Documentation
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
ReleasedIn
Topic revision: r2 - 07 Nov 2009, CrawfordCurrie
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