Item1980: Sticky tags within Verbatim Tags results in data loss
Current State: Closed
Released In: 1.0.7, 1.1.0
Target Release: patch
If you place sticky tags inside verbatim tags, the WYSIWYG editor loses all text within the sticky tags and also corrupts the sticky tags themselves! The only way to make this work is to put the sticky tags on the outside.
This bug is confirmed and seems to be very basic core problem.
This is the crash text after having edited and saved a topic with
And it is the entire topic that is lost!!!
Wide character in print at /var/www/Release01x00/core/lib/Foswiki/Engine/CGI.pm line 186.
For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.
[Fri Sep 11 07:45:26 2009] save: Wide character in print at /var/www/Release01x00/core/lib/Foswiki/Engine/CGI.pm line 186.
at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 314
CGI::Carp::realdie('[Fri Sep 11 07:45:26 2009] save: Wide character in print at /...') called at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 400
CGI::Carp::die('Wide character in print at /var/www/Release01x00/core/lib/Fos...') called at /var/www/Release01x00/core/lib/Foswiki.pm line 157
Foswiki::__ANON__('Wide character in print at /var/www/Release01x00/core/lib/Fos...') called at /var/www/Release01x00/core/lib/Foswiki/Engine/CGI.pm line 186
Foswiki::Engine::CGI::write('Foswiki::Engine::CGI=HASH(0x89ad0a4)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...') called at /var/www/Release01x00/core/lib/Foswiki/Engine.pm line 374
Foswiki::Engine::finalizeBody('Foswiki::Engine::CGI=HASH(0x89ad0a4)', 'Foswiki::Response=HASH(0x8bd87f0)') called at /var/www/Release01x00/core/lib/Foswiki/Engine.pm line 269
Foswiki::Engine::finalize('Foswiki::Engine::CGI=HASH(0x89ad0a4)', 'Foswiki::Response=HASH(0x8bd87f0)', 'Foswiki::Request=HASH(0x8bd8a24)') called at /var/www/Release01x00/core/lib/Foswiki/Engine/CGI.pm line 27
Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x89ad0a4)') called at /var/www/Release01x00/core/bin/save line 45
- 11 Sep 2009
We really should fix WysiwygPlugin
to convert more, correctly. In the meantime, I am trying to prevent damage. TinyMCE already disables itself when WysiwygPlugin
says the topic is "notWysiwygEditable", so WysiwygPlugin
now tries to detect content that it cannot convert.
Note that data loss is still possible if the user clicks Wikitext and then saves.
to capture the fact that WysiwygPlugin
is disabled by sticky tags inside verbatim tags.
- 15 Sep 2009
Data loss problem solved.
- 15 Sep 2009