Foswiki on GitHub is open for business! Next release meeting: Monday September 15, 1300Z

Item9937: People that have manually copied Foswiki.spec to LocalSite.cfg (not recommended) have problems with new settings added.

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine Documentation Main.GeorgeClark
-- AkshayAnant - 01 Nov 2010

It appears as though somehow Foswiki.spec got copied into the intial LocalSite.cfg.

lib/Foswki/Configure/FoswikiCfg.pm should probably remove any embedded __END__ lines, along with any embedded 1;, ensuring that the final line in the configuration is the 1;

-- GeorgeClark - 01 Nov 2010

If Foswiki.spec is copied into LSC without editing, and configure is run, then configure complains about the missing settings and throws away LSC, giving the user a fresh file upon save.

If Foswiki.spec is copied and edited so that all of the mandatory settings are provided, then the problem can be recreated. The __END__ stops the evaluation of the file, and new settings are appended to the end, and ignored.

It appears that it would be safe to remove __END__ from the Foswiki.spec file, and add a comment to Foswiki.spec suggesting that it not be copied into LocalSite.cfg. That should be sufficient. The extra 1; embedded in the file doesn't seem to cause issues. and the copyright comments are ignored and not copied over or seen in the UI.

-- GeorgeClark - 01 Nov 2010

After discussion on IRC, decided to only clarify comments at beginning of Foswiki.spec.

-- GeorgeClark - 01 Nov 2010
 

ItemTemplate edit

Summary People that have manually copied Foswiki.spec to LocalSite.cfg (not recommended) have problems with new settings added.
ReportedBy AkshayAnant
Codebase 1.1.1, 1.1.0, trunk
SVN Range
AppliesTo Engine
Component Documentation
Priority Normal
CurrentState Closed
WaitingFor GeorgeClark
Checkins Foswikirev:9820
TargetRelease patch
ReleasedIn 1.1.2
Topic attachments
I Attachment Action Size Date Who Comment
LocalSiteBackup.txttxt LocalSiteBackup.txt manage 83.8 K 01 Nov 2010 - 19:06 AkshayAnant LocalSite.cfg file
Topic revision: r9 - 10 Nov 2010, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License