Bug: Plugin.pm evals plugins w/o checking for errors
Plugin.pm uses eval to load plugins. It doesn't, however, check
the error return ($@), which can cause silent and hard to track down
problems.
For example, we had a misconfigured
mod_perl which was attempting
to load a shareable
File::Glob (even though it was statically
linked into Perl) when
MathModePlugin was eval'd. MathModePlugin was
compiled (and thus loaded into mod_perl) but the module's
initialization code (the part not in subroutines) was never run,
causing bizarre behavior when the plugin was used. The only hint
of why this was happening was in the error thrown by Perl via $@.
Test case
Environment
| TWiki version: |
20030201 |
| TWiki plugins: |
|
| Server OS: |
|
| Web server: |
|
| Perl version: |
5.6.1 |
| Client OS: |
|
| Web Browser: |
|
--
DiabJerius - 27 Feb 2003
Follow up
This should have been fixed in the
TWikiRelease01Feb2003. This needs to be verified, possibly it got "unfixed" by mistake.
Fix record