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 Item11383 for general documentation changes for release 1.1.5. Use Item9693 for docu changes for release 2.0.

Item723: t.o plugins that use Sandbox calls may not work out-of-the-box (e.g. LatexModePlugin)

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Confirmed Extension TWikiCompatibilityPlugin, LatexModePlugin  

background process execution using the Sandbox, and backwards compatibility

Description of the problem

The Sandbox functions changed between Foswiki and TWiki, preventing out-of-the-box backwards compatibility using TWikiCompatibilityPlugin.

The TWiki::Sandbox declared an object, whereas the Foswiki::Sandbox is static.

This affects all TWiki plugins that process data using external background programs.

Examples

In the LatexModePlugin from t.o, in Render.pm :
my $sandbox =  $TWiki::sharedSandbox || $TWiki::sandbox ;

In the BibtexPlugin from t.o, in BibtexPlugin.pm:
$sandbox = new TWiki::Sandbox();

Workaround

Change the locations where the sandbox is declared to use
use Foswiki::Sandbox;
my $sandbox =  $Foswiki::sharedSandbox || $Foswiki::sandbox || 'Foswiki::Sandbox';
Then the static sysCommand method of "Foswiki::Sandbox" gets called.


Note: Check SVN for a Foswiki version of the above plugins. They are in the process of being ported. In particular, the LatexModePlugin should be released shortly. -- ScottHoge - 10 Jan 2009

We'll need to look into adding a more correct TWiki::Sandbox in T*Compat - shouldn't be too hard to do really.

I see this as a bug in TWikiCompatibilityPlugin - and advice for rebranders smile

-- SvenDowideit - 10 Jan 2009

ItemTemplate edit

Summary t.o plugins that use Sandbox calls may not work out-of-the-box (e.g. LatexModePlugin)
ReportedBy ChristianLudwig
Codebase 1.0.0
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component TWikiCompatibilityPlugin, LatexModePlugin
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease patch
ReleasedIn 1.0.1
Topic revision: r4 - 15 Mar 2009 - 16:18:09 - KennethLavrsen
 
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