This question about Topic Markup Language and applications: Answered

Errors thrown when viewing some instance pages in application

(I apologize in advance that I am still running 1.1.9. I'm in the process of updating, but it's an active wiki and I don't want to mess it up...)

I have a Library application - each book has a page. The information for the books is almost entirely stored in the associated form data. Everything except for review comments is stored in the meta data.

When I created the application, there were no errors. However, I noticed today that some (but not all) book pages have started throwing an error:

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

Insecure dependency in require while running with -T switch

e.g.

When I checked the Apache error log, the Insecure dependency... was just the tip of the error iceberg:

 Insecure dependency in require while running with -T switch at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin/Core.pm line 3.
  at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin/Core.pm line 3
 \tFoswiki::Plugins::TablePlugin::BEGIN() called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin/Core.pm line 3
 \teval {...} called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin/Core.pm line 3
 \trequire Foswiki/Plugins/TablePlugin/Core.pm called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin.pm line 68
 \tFoswiki::Plugins::TablePlugin::preRenderingHandler('<!--\\x{0}comment0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" x...', 'HASH(0x10280abd8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugin.pm line 294
 \tFoswiki::Plugin::invoke('Foswiki::Plugin=HASH(0x100d4cb50)', 'preRenderingHandler', '<!--\\x{0}comment0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" x...', 'HASH(0x10280abd8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins.pm line 341
 \tFoswiki::Plugins::dispatch('Foswiki::Plugins=HASH(0x100af48b0)', 'preRenderingHandler', '<!--\\x{0}comment0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" x...', 'HASH(0x10280abd8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Render.pm line 1166
 \tFoswiki::Render::getRenderedVersion('Foswiki::Render=HASH(0x100977900)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Foswiki::Meta=HASH(0x100c6c8a8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Meta.pm line 3117
 \tFoswiki::Meta::renderTML('Foswiki::Meta=HASH(0x100c6c8a8)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI/View.pm line 413
 \tFoswiki::UI::View::_prepare('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Foswiki::Meta=HASH(0x100c6c8a8)', 0) called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI/View.pm line 372
 \tFoswiki::UI::View::view('Foswiki=HASH(0x100a8bed8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI.pm line 316
 \tFoswiki::UI::__ANON__() called at /Library/Perl/5.10.0/Error.pm line 419
 \teval {...} called at /Library/Perl/5.10.0/Error.pm line 411
 \tError::subs::try('CODE(0x100804d20)', 'HASH(0x100a8baa0)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI.pm line 435
 \tFoswiki::UI::_execute('Foswiki::Request=HASH(0x100842de0)', 'CODE(0x1008a0010)', 'view', 1) called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI.pm line 274
 \tFoswiki::UI::handleRequest('Foswiki::Request=HASH(0x100842de0)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Engine/CGI.pm line 74
 \tFoswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x1008e8190)') called at /WWW/web/foswiki/bin/view line 24
 BEGIN failed--compilation aborted at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin/Core.pm line 3.
  at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin/Core.pm line 3
 \trequire Foswiki/Plugins/TablePlugin/Core.pm called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin.pm line 68
 \tFoswiki::Plugins::TablePlugin::preRenderingHandler('<!--\\x{0}comment0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" x...', 'HASH(0x10280abd8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugin.pm line 294
 \tFoswiki::Plugin::invoke('Foswiki::Plugin=HASH(0x100d4cb50)', 'preRenderingHandler', '<!--\\x{0}comment0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" x...', 'HASH(0x10280abd8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins.pm line 341
 \tFoswiki::Plugins::dispatch('Foswiki::Plugins=HASH(0x100af48b0)', 'preRenderingHandler', '<!--\\x{0}comment0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" x...', 'HASH(0x10280abd8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Render.pm line 1166
 \tFoswiki::Render::getRenderedVersion('Foswiki::Render=HASH(0x100977900)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Foswiki::Meta=HASH(0x100c6c8a8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Meta.pm line 3117
 \tFoswiki::Meta::renderTML('Foswiki::Meta=HASH(0x100c6c8a8)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI/View.pm line 413
 \tFoswiki::UI::View::_prepare('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Foswiki::Meta=HASH(0x100c6c8a8)', 0) called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI/View.pm line 372
 \tFoswiki::UI::View::view('Foswiki=HASH(0x100a8bed8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI.pm line 316
 \tFoswiki::UI::__ANON__() called at /Library/Perl/5.10.0/Error.pm line 419
 \teval {...} called at /Library/Perl/5.10.0/Error.pm line 411
 \tError::subs::try('CODE(0x100804d20)', 'HASH(0x100a8baa0)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI.pm line 435
 \tFoswiki::UI::_execute('Foswiki::Request=HASH(0x100842de0)', 'CODE(0x1008a0010)', 'view', 1) called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI.pm line 274
 \tFoswiki::UI::handleRequest('Foswiki::Request=HASH(0x100842de0)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Engine/CGI.pm line 74
 \tFoswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x1008e8190)') called at /WWW/web/foswiki/bin/view line 24
 Compilation failed in require at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin.pm line 68.
  at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins/TablePlugin.pm line 68
 \tFoswiki::Plugins::TablePlugin::preRenderingHandler('<!--\\x{0}comment0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" x...', 'HASH(0x10280abd8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugin.pm line 294
 \tFoswiki::Plugin::invoke('Foswiki::Plugin=HASH(0x100d4cb50)', 'preRenderingHandler', '<!--\\x{0}comment0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" x...', 'HASH(0x10280abd8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Plugins.pm line 341
 \tFoswiki::Plugins::dispatch('Foswiki::Plugins=HASH(0x100af48b0)', 'preRenderingHandler', '<!--\\x{0}comment0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" x...', 'HASH(0x10280abd8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Render.pm line 1166
 \tFoswiki::Render::getRenderedVersion('Foswiki::Render=HASH(0x100977900)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Foswiki::Meta=HASH(0x100c6c8a8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Meta.pm line 3117
 \tFoswiki::Meta::renderTML('Foswiki::Meta=HASH(0x100c6c8a8)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI/View.pm line 413
 \tFoswiki::UI::View::_prepare('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Foswiki::Meta=HASH(0x100c6c8a8)', 0) called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI/View.pm line 372
 \tFoswiki::UI::View::view('Foswiki=HASH(0x100a8bed8)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI.pm line 316
 \tFoswiki::UI::__ANON__() called at /Library/Perl/5.10.0/Error.pm line 419
 \teval {...} called at /Library/Perl/5.10.0/Error.pm line 411
 \tError::subs::try('CODE(0x100804d20)', 'HASH(0x100a8baa0)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI.pm line 435
 \tFoswiki::UI::_execute('Foswiki::Request=HASH(0x100842de0)', 'CODE(0x1008a0010)', 'view', 1) called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/UI.pm line 274
 \tFoswiki::UI::handleRequest('Foswiki::Request=HASH(0x100842de0)') called at /Volumes/Datastore/Local/Protected/WWW/web/foswiki119/lib/Foswiki/Engine/CGI.pm line 74
 \tFoswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x1008e8190)') called at /WWW/web/foswiki/bin/view line 24.

Additional information
  • None of the above errors are logged for working pages.
  • No errors are thrown when I view a page with raw=debug.
  • No errors are thrown when I edit a page.
  • The Insecure dependency in require... comes from Table Plugin's Core.pm module (but there are no tables in the page data).

Suggestions (beyond "Try 2.0.1" wink welcome.

-- VickiBrown - 15 Sep 2015

It dies in the preRendering handler of TablePlugin. You might be best to just turn off Taint checking. (Remove the -T flag from the bin scripts shebang line.) We've disabled taint checking by default in 2.0 because of the issues with locales and supporting international character sets.

-- GeorgeClark - 15 Sep 2015

I'll try that. I'm wondering why only some pages have this issue (and none of the pages use Table plugin).

I tracked down the offending code to
%INCLUDE{"http://books.google.com/books?id=hiQ19mUyLj8C" pattern="^.*meta name=\"description\" content=\"(.*?)\"\/>.*" warn="off" raw="on"}%

When I remove this line, everything is OK. I'm guessing that something has changed at the Google URL and Perl's -T no longer trusts it.

OK... more testing and now I've seen this:

Screen Shot 2015-09-15 at 20.55.18.png

That explains why, even after removing -T I wasn't getting the expected results.

I've installed the necessary SSL Perl modules and now get

Failed to include URL https://books.google.com/books?id=hiQ19mUyLj8C Can't connect to books.google.com:443 (Crypt-SSLeay can't verify hostnames)

So, no crashing pages but no desired INCLUDEd text either.

Is there something more necessary to make INCLUDE happy about https?

-- VickiBrown - 16 Sep 2015

I found it.

Add:
SetEnv PERL_LWP_SSL_VERIFY_HOSTNAME 0
to the Apache config

-- VickiBrown - 16 Sep 2015
 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r3 - 16 Sep 2015, VickiBrown
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