Item10636: Missing 'use Assert' in HTML2TML.pm
Priority: Normal
Current State: Closed
Released In: 1.1.3
Target Release: patch
Got this interesting backtrace bulk-importing from a migration script:
Undefined subroutine &Foswiki::Plugins::WysiwygPlugin::HTML2TML::ASSERT called at /usr/local/src/git.trin.org.au/core/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm line 277.
at /usr/local/src/git.trin.org.au/core/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm line 277
Foswiki::Plugins::WysiwygPlugin::HTML2TML::_default('Foswiki::Plugins::WysiwygPlugin::HTML2TML=HASH(0x2958180)', 'process', '<?i?>') called at /usr/local/src/git.trin.org.au/core/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm line 181
eval {...} called at /usr/local/src/git.trin.org.au/core/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm line 181
Foswiki::Plugins::WysiwygPlugin::HTML2TML::convert('Foswiki::Plugins::WysiwygPlugin::HTML2TML=HASH(0x2958180)', '<p>The body is high, with a continuous mantle ridge around th...', 'HASH(0x8daa6b8)') called at /usr/local/src/git.trin.org.au/core/lib/Foswiki/Plugins/WysiwygPlugin/Handlers.pm line 176
Foswiki::Plugins::WysiwygPlugin::Handlers::TranslateHTML2TML('<p>The body is high, with a continuous mantle ridge around th...', 'Ceraingo', 'Marine/SeaSlugs/Taxa') called at ./SeaSlugs.pm line 278
SeaSlugs::transform_richtext('<p>The body is high, with a continuous mantle ridge around th...', 'Foswiki::Meta=HASH(0x3b862a0)') called at ./SeaSlugs.pm line 294
SeaSlugs::transform_text('<p>The body is high, with a continuous mantle ridge around th...', 'Foswiki::Meta=HASH(0x3b862a0)') called at ./SeaSlugs.pm line 775
SeaSlugs::genFIELDs('Foswiki::Meta=HASH(0x3b862a0)', 1725, 'ARRAY(0x27ee2a8)') called at ./SeaSlugs.pm line 852
SeaSlugs::createTopic(1725, 'ARRAY(0x27ee2a8)') called at ./SeaSlugs.pm line 960
SeaSlugs::run() called at ./SeaSlugs.pm line 972
at /usr/local/src/git.trin.org.au/core/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm line 181
Foswiki::Plugins::WysiwygPlugin::HTML2TML::convert('Foswiki::Plugins::WysiwygPlugin::HTML2TML=HASH(0x2958180)', '<p>The body is high, with a continuous mantle ridge around th...', 'HASH(0x8daa6b8)') called at /usr/local/src/git.trin.org.au/core/lib/Foswiki/Plugins/WysiwygPlugin/Handlers.pm line 176
Foswiki::Plugins::WysiwygPlugin::Handlers::TranslateHTML2TML('<p>The body is high, with a continuous mantle ridge around th...', 'Ceraingo', 'Marine/SeaSlugs/Taxa') called at ./SeaSlugs.pm line 278
SeaSlugs::transform_richtext('<p>The body is high, with a continuous mantle ridge around th...', 'Foswiki::Meta=HASH(0x3b862a0)') called at ./SeaSlugs.pm line 294
SeaSlugs::transform_text('<p>The body is high, with a continuous mantle ridge around th...', 'Foswiki::Meta=HASH(0x3b862a0)') called at ./SeaSlugs.pm line 775
SeaSlugs::genFIELDs('Foswiki::Meta=HASH(0x3b862a0)', 1725, 'ARRAY(0x27ee2a8)') called at ./SeaSlugs.pm line 852
SeaSlugs::createTopic(1725, 'ARRAY(0x27ee2a8)') called at ./SeaSlugs.pm line 960
SeaSlugs::run() called at ./SeaSlugs.pm line 972
--
PaulHarvey - 14 Apr 2011
This probably doesn't affect anyone using
WysiwygPlugin from within a normal Foswiki request, so I'm setting straight to closed.
--
PaulHarvey - 14 Apr 2011
The HTML was:
<p>The body is high, with a continuous mantle ridge around the mantle edge, with mantle glands scattered along the edge. The gills are sparsely pinnate and often branched. The body, and mantle, ranges in colour from translucent white to a pale orange-yellow, with reddish purple spots scattered over the mantle and the sides of the body. Each spot is surrounded by a whitish ring. Gosliner describes the gills as translucent white, but in larger specimens they can also have small purplish spots. Reported to reach 55 mm in length.</p><p>This species was first reported by Gosliner <a href="brgosl1.htm">[1987]</a> as <em>Ceratosoma sp.</em> [no 138]. In Terry's photo the spots are much redder but in the text he talks of bluish spots. It is apparently only found in southern South Africa as he reports seeing it 'only in vicinity of Danger Point' [near Gansbaai, Western Cape, South Africa]. It looks quite similar to <a href="cerabrev.htm"><em>Ceratosoma brevicaudatum</em></a> which is only found in the temperate waters of southern Australia.</p><p>Reference:<br/>• Gosliner, T. (1987) <a href="brgosl1.htm"><em>Nudibranchs of Southern Africa</em></a>.<br/>• Gosliner, T.M. (1996) Phylogeny of <em>Ceratosoma</em><?i?>
(Nudibranchia: Chromodorididae), with descriptions of two new species. <em>Proceedings of the California Academy of Sciences,</em> 49(3): 115-126<em>.</em></p>
I.E. caused by the bogus
<?i?>
tag
--
PaulHarvey - 15 Apr 2011