On Sat, Aug 26, 2006 at 12:58:31PM -0700, S. Kiehn wrote:
>    error parsing headers: malformed header 'The 'header_object' parameter
>    ("CGI :Fast=HASH(0x879b104)") to Apache::Session::Wrapper->new() did not
>    pass the 'has a method to set headers' callback'
> 
>    The perldoc for Apache::Session::Wrapper indicates that when outside of
>    mod_perl "you must provide an object to which the cookie header can be
>    added", but the perldoc for MasonX::R::WAS says "this module takes care of
>    passing the 'header_object' and 'param_object' parameters to 
>    Apache::Session::Wrapper."

I believe this is a bug in MasonX::Request::WithApacheSession.  The
attached patch fixes it.

Unfortunately, when I last asked Dave about this problem, he said
"someone else was supposed to maintain this and they disappeared", so I
don't know what state M::R::WAS is in. :(

hdp.
--- lib/MasonX/Request/WithApacheSession.pm.orig        2006-03-28 
14:33:16.000000000 -0500
+++ lib/MasonX/Request/WithApacheSession.pm     2006-03-28 14:36:06.000000000 
-0500
@@ -89,7 +89,8 @@
     }
     elsif ( $self->can('cgi_object') )
     {
-        %extra = ( header_object => $self->cgi_object,
+        %extra = ( header_object => eval { $self->cgi_request } 
+                     || $self->cgi_object,
                    param_object  => $self->cgi_object,
                  );
     }
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to