Re: Mason 1.29_02 bug: Configuring plugins

John Williams <[email protected]> Sun, 7 Aug 2005 21:15:54 -0600 (MDT)
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
Who did the plugins feature?

The bug report below looks valid, since most other param entries have a
"type" defined as well as a "parse".

Has anyone looked at this?

~ John Williams



On Sat, 9 Jul 2005, Derek Poon wrote:
> 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
>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf