• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5231: DirectedGraphPlugin fails in TWiki 4.2 RC2

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension DirectedGraphPlugin Normal Closed   major  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


I'm currently testing TWiki 4.2 RC2 (TWiki:Codev.TWikiRelease04x02x00rc2). DirectedGraphPlugin does not seem to work with this release. The code in DirectedGraphPlugin uses TWiki::sharedSandbox, and fails because that variable is undefined. In TWiki 4.1.2, this variable is defined in lib/TWiki.pm, around line 452. I don't see any code in TWiki 4.2 which initializes TWiki::sharedSandbox. I can't tell whether this is intentional. If it is, then the plugin needs to be updated, otherwise the TWiki code must resurrect the sharedSandbox.

Tested on a Linux box running CentOS 5.

-- TWiki:Main/ClausBrod - 09 Jan 2008

TWiki::SharedSandbox is not official API so it is the plugin that needs to be fixed and the fix should avoid abusing a new internal variable.

-- TWiki:Main.KennethLavrsen - 09 Jan 2008

Thanks, Kenneth! The plugin uses Sandbox::sysCommand, and that's why it tries to access the sharedSandbox instance. If sharedSandbox is not part of the official plugin API, what would be a good way for a plugin to proceed?


-- TWiki:Main.ClausBrod - 09 Jan 2008

TWiki 4.2 has a TWiki::Sandbox API - I'm assuming that that is the one to use. The plugin tries to detect which Sandbox API to use.

-- TWiki:Main.GeorgeClark - 09 Jan 2008

I didn't address this one - I have 4.2 installed, but I've been a bit lazy and testing on 4.1.2. I'll have to fire up 4.2 again. If someone else doesn't fix it I'll give it a shot. My fixes are quite extensive, and I don't have checkin authority yet, so I'm a bit hesitant on how to proceed.

-- TWiki:Main.GeorgeClark - 10 Jan 2008

The fix for the sandbox problem is fairly simple... Pulled a couple lines of code from the natskin plugin. There are other issues with 4.2 however. wysiwyg editor totally breaks the dot language. Completely destroys the page. And there were a couple of other tweaks needed but as long as I don't touch the page with wysiwyg, it works with my new code.

Er... not yet. The plugin does not seem to be picking up defaults either. It works as long as the dot command specifies the output format.

-- TWiki:Main.GeorgeClark - 10 Jan 2008

I have attached a test version of the plugin to Bugs:Item5212 that should address the Sandbox issue. It's working on RC1. caution changes are very extensive and result in different attachment file names.

-- TWiki:Main.GeorgeClark - 10 Jan 2008

My first tests goes very well on RC2. I only had to set the path to the tools directory in configure..great job George. If you dont soon get the code committed maybe attach your updates to DirectedGraphPluginDev so that others find it easily.

-- TWiki:Main.LarsEik - 10 Jan 2008

I could not open the plugin topic (DirectedGraphPlugin.txt), it said " File::Temp reference passed in INFILE at /var/www/twiki/lib/TWiki/Sandbox.pm line 264." in the warn logfile and apache error log. I think it's because some of the files from the dot examples was created before, or something. I hand-edited the plugin topic and put verbatim tags on all examples that said "You get this (if installed)" so they did not get rendered as dot code, and it looks ok now. I installed (unzipped and moved) your updates over the plugin which was already installed before. I have not tested on a TWiki that dont have TWiki:Plugins.DistributedGraphPlugin installed.

-- TWiki:Main.LarsEik - 10 Jan 2008

I'm going to have to reinstall / retest a couple of times on this one. It really shouldn't care about pre-existing files. It will just overwrite. And in the case of the previous plugin, all of the generated file names are changed. So that isn't it.

In any event, you should not have run into this, so something is not right. All of the examples in DirectedGraphPlugin should have worked just fine.

-- TWiki:Main.GeorgeClark - 11 Jan 2008

Found the problem. With antialias output I neglected to create the temporary file name for the .png file, so the convert utility received a File::Temp instead of the name provided by File::Temp. I'll attach an updated zipfile.

-- TWiki:Main.GeorgeClark - 11 Jan 2008

Now it looks fine. I had to reload apache.

-- TWiki:Main.LarsEik - 11 Jan 2008

Summary DirectedGraphPlugin fails in TWiki 4.2 RC2
ReportedBy TWiki:Main.ClausBrod
Codebase 4.2.0
SVN Range TWiki-4.3.0, Sun, 30 Dec 2007, build 16120
AppliesTo Extension
Component DirectedGraphPlugin
Priority Normal
CurrentState Closed

Checkins TWikirev:16208
TargetRelease major

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivezip DirectedGraphPlugin.zip r1 manage 14.0 K 2008-01-11 - 03:31 GeorgeClark Updated fix for File::Temp problem.
Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r13 - 2008-01-20 - GeorgeClark
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback