Item1980: Sticky tags within Verbatim Tags results in data loss

pencil
Priority: Urgent
Current State: Closed
Released In: 1.0.7, 1.1.0
Target Release: patch
Applies To: Extension
Component: WysiwygPlugin
Branches:
Reported By: SteveLin
Waiting For:
Last Change By: KennethLavrsen
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.

-- SteveLin

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

<verbatim>
<sticky>
some text
</sticky>
</verbatim>

And it is the entire topic that is lost!!!

Software error:

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.
Software 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

-- KennethLavrsen - 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.

Raised Item2074 to capture the fact that WysiwygPlugin is disabled by sticky tags inside verbatim tags.

-- MichaelTempest - 15 Sep 2009

Data loss problem solved.

-- MichaelTempest - 15 Sep 2009

ItemTemplate edit

Summary Sticky tags within Verbatim Tags results in data loss
ReportedBy SteveLin
Codebase 1.0.4, trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component WysiwygPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:f1596b91b51d distro:dc83694ab55e distro:b9ebfb01008e distro:97e3df6c7038
TargetRelease patch
ReleasedIn 1.0.7, 1.1.0
Topic revision: r12 - 20 Sep 2009, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy