Fails to create subweb directory with "no such directory".
Works OK with top webs.
- 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.
- 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.
- 02 Mar 2008
I've checked in a quick fix for the problem. Tested on 4.2, didn't test on older releases.
- 03 Mar 2008