Guy Parker | 18 Jan 11:01

Re: [FormBuilder] FB, Apache2 & Mason

Thanks guys.

Having read the Mason docs I found the reason for the problems and  
the solution. Mason changes it's argument handling from a "mod_perl  
method" to a "CGI  method" when it detects mod_perl2. This is a  
change because previously the "mod_perl method" was the default.  
Anyway, there is a way to force Mason to use the "mod_perl method" so  
long as the latest Apache2::Request is installed (set args_method or  
MasonArgsMethod to "mod_perl"). Now all my forms work again without  
any other changes.
:-)

Thanks,

Guy

On 17 Jan 2007, at 19:00, Mark Hedges wrote:

>
>
> On Tue, 16 Jan 2007, Nate Wiger wrote:
>> Subject: Re: [FormBuilder] FB, Apache2 & Mason
>>
>> On 1/16/07, Guy Parker <gparker <at> connectfree.co.uk> wrote:
>>> I'm being forced into migrating my current FB, Apache, Mason code to
>>> Apache2. I'm having trouble getting FB to be able access the
>>> submitted form data. In the past I simply created the new form  
>>> object
>>> with params => $r and everything was OK.This doesn't work now.
>>>
>>> I've tried using Apache2::Request->new($r) and CGI->new($r) instead
>>> but neither was successful.
>>
>> I believe you need RequestUtil. Apache2 really kinda screwed up
>> mod_perl IMO. You may also want to just try CGI->new w/o the $r, if
>> you haven't. I got Mason running, but it was a bit of a pain - make
>> sure you're on the latest version. Beyond that I personally don't  
>> have
>> any ideas, sorry...
>
> Yeah that was lame.  That might have been the whole reason
> RedHate did their frankenstein mod_perl 1.99/Apache 2 build.
> I think they fixed that in the current version of libapreq2.
> http://search.cpan.org/~joesuf/libapreq2-2.08/glue/perl/lib/Apache2/ 
> Request.pm#param
>
> Mark

_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers


Gmane