• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 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.

Item5403: Cannot create graphs in subwebs

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension DirectedGraphPlugin Normal Closed   n/a  

Edit Form Data

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


Fails to create subweb directory with "no such directory".

Works OK with top webs.

-- TWiki:Main/SteffenPoulsen - 29 Feb 2008

It could probably be fixed in the plugin, but I expect that this is actually a TWiki bug. The help on getWorkarea claims that the directory returned is guaranteed to exist. In the plugin, the code is really simple. It does a getWorkarea and then uses saveFile to save the file in the workarea. It doesn't touch the path.

It appears that with subwebs, getWorkarea returns the workarea suffixed with an additional subweb directory which does not exist.

The plugin could be changed to test if the workarea really exists, and to create the directory if it does not. But that's working around the core function.

-- TWiki:Main.GeorgeClark - 01 Mar 2008

I was wrong above. Problem is indeed the plugin. The webname passed in the called parameters includes the slash for the subweb. The plugin uses the webname in building the work filename, which causes it to be interepreted as a path. It should be simple enough to convert the slash to an underscore before referencing the workfile.

so web/subweb will become web_subweb in the workfile name.

-- TWiki:Main.GeorgeClark - 02 Mar 2008

I've checked in a quick fix for the problem. Tested on 4.2, didn't test on older releases.

-- TWiki:Main.GeorgeClark - 03 Mar 2008

Summary Cannot create graphs in subwebs
ReportedBy TWiki:Main.SteffenPoulsen
Codebase 4.2.0
SVN Range TWiki-5.0.0, Wed, 23 Jan 2008, build 16283
AppliesTo Extension
Component DirectedGraphPlugin
Priority Normal
CurrentState Closed

Checkins TWikirev:16480
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2008-05-24 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback