Mason 1.29_02 bug: Configuring plugins

Derek Poon <[email protected]> Sat, 9 Jul 2005 20:16:44 +0200
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
Hi,

There is a bug in 1.29_02 that causes an error when configuring plugins.

I have this in my httpd.conf:

PerlAddVar MasonPlugins My::FirstPlugin
PerlAddVar MasonPlugins My::SecondPlugin


That causes this error to appear in the Apache error log:

[error] Can't locate object method "_get_arrayref_param" via package  
"HTML::Mason::ApacheHandler" at [...]/HTML/Mason/ApacheHandler.pm  
line 467.\n


Here's the fix:

--- HTML-Mason-1.29_02/lib/HTML/Mason/Request.pm.plugins-param     
2005-06-23 02:13:12.000000000 +0200
+++ HTML-Mason-1.29_02/lib/HTML/Mason/Request.pm        2005-07-09  
19:51:14.000000000 +0200
@@ -127,7 +127,7 @@
           },
          plugins =>
-         { parse => 'arrayref', default => [],
+         { type => ARRAYREF, default => [],
            descr => 'List of plugin classes or objects to run hooks  
around components and requests' },
           # Only used when creating subrequests



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar