In out Motorola TWiki just updated to SVN 8564 the
TWikiDraw Plugin has stopped working
If I put a %DRAWING{"somename"}% in a topic the applet button is shown.
I then click on it and make a quick drawing and save it.
A gif file and a draw file is now attached to the topic but the entire topic is empty.
ALL text is deleted from the topic.
Since the plugin as far as I can see is not updated this is a bug in the engine.
KJL
Small update. I cannot reproduce it at home. I will try and login Saturday and try again after a SVN update.
I remembered that when I entered the DRAWING tag again and with the same filename it did not show the drawing. This is normally the case. You can copy the gif and draw files from another topic by attaching them first and then edit the topic and add the DRAWING tag. But this did not work either. It showed the applet button like it was a new drawing waiting to be created. So this is before the jar file is loaded.
I also need to test if the problem is browser related. I doubt.
KJL
Can't reproduce this, but added a pattern template to the twikidrawplugin in the process.
SVN 8569/8570.
--
SP
Note that the
TWikiDrawPlugin does not touch the topic directly. The only thing it does is to add attachments, using the REST interface to the upload script. Since attachments meta data is written into the topic, then it is feasible that an error in Store might clear the topic; but that code has been untouched for months. Can you examine the topic.txt file on disc and establish what is in it? Is there any chance another plugin might have done the dirty?
CC
This is really nasty.
I sit here at Motorola with my updated SVN Dakar and each time I edit a topic which uses DRAWING and save it the entire topic is deleted.
I will try and see if some plugin is interfering. But this is nasty.
KJL
News.
The error is triggered by the combination of
TWikiDrawPlugin and
RevCommentPlugin.
When I disable the
RevCommentPlugin the drawing gets saved correctly.
When the
RevCommentPlugin is enabled this is the exact failure mode.
- When you have a topic with a drawing all works. You see the drawing and you can click on the drawing.
- When you click the drawing you get the correct drawing loaded in the applet and can edit it.
- When you save it looks fine seen from the plugin but you end up with a totally blank topic.
- The saved drawing and gif files are both 0 length completely empty files.
The topic text looks like this after the save (example where I have tried a couple of times)
The error I get in the Apache log
[Mon Jan 30 17:36:40 2006] [error] [client 145.18.1.198] File does not exist: /var/www/dakar/pub/wikiHome.gif, referer: http://145.18.3.55/dakar/bin/oops/Sandbox/TestTopic1?template=twikidraw;param1=Nummerto
[Mon Jan 30 17:37:25 2006] [error] [client 145.18.1.198] ********************************
[Mon Jan 30 17:37:25 2006] [error] [client 145.18.1.198] OopsException(attention/zero_size_upload web=>Sandbox topic=>TestTopic1 params=>Nummerto.map)
[Mon Jan 30 17:37:25 2006] [error] [client 145.18.1.198] ********************************
I have changed the bug report to address
RevCommentPlugin and lowered the severity to normal.
KJL
Item2097 / SVN 9810 9813 fixes this bug.
KJL