SID-00540: Unable to save TwikiDraw Drawing
| Status: |
Answered |
TWiki version: |
4.3.2 |
Perl version: |
5.10.0 |
| Category: |
TWikiDrawPlugin |
Server OS: |
OpenSuse 11.0 X86-64 kernel 2.6.25 |
Last update: |
12 years ago |
Hi, I have tried looking to this problem, but dont seem to be getting anywhere.
I have just upgraded from an old version of Twiki to 4.3.2, We used the
TwikiDraw Plugin to create simple pictures.
I have re-installed the latest
TwikiDrawPlugin but it has stopped working correctly with the latest Twiki. We can open a drawing and edit it in the Java applet, but when we try to save, it fails with a "Saved .draw failed .map failed .gif failed" error.
Looking through the logs on the server, it looks like the java applet is not authenticating correctly when it tries to upload the .draw, .map and .gif files.
It complains about:
"Use of uninitialized value in string eq at /home/twiki4/lib/TWiki/USers/TwikiUserMapping.pm line 471."
"Use of uninitialized value $crypt_token in string eq at /home/www/twiki4/lib/TWiki/UI.pm line 351"
"ERROR: <URL REMOVED> ?template=oopsinvalidtoken;def=invalid_token at /home/www/twiki4/lib/TWiki.pm line 802."
If you need any more info, please just ask.
Thanks in advance
Mark Retallack
--
TWikiGuest - 2009-09-24
Discussion and Answer
Oh, it looks like the
TWikiDrawPlugin needs to be updated to be aware of the
crypt-token based CSRF fix added to TWiki 4.3.2. As a workaround until fixed you can disable the crypt-based check in configure,
{CryptToken}{Enable} setting in security section.
--
PeterThoeny - 2009-09-24
Thanks, that's perfect. We can now continue to draw!!
Just a quick note to say thanks to you and all the TWiki team for making such a cool platform.
Mark Retallack.
--
TWikiGuest - 2009-09-24
I filed
TWikibug:Item6333
to track this.
--
PeterThoeny - 2009-09-28
I just had the same problem after upgrading a Twiki 4.1.2 site to 5.1.4. I do have ~20 plugins but I installed them from scratch in the new site. The solution mentioned here fixes the problem but I'm surprised it still exists since
TWikibug:Item6333
makes it sound like this was fixed.
--
Jon Forrest - 2013-03-29
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.