Ok, it's PSGI specific. Try this patch, I'll test it and get it into a release 
later:

--- a/lib/Mason/Request.pm
+++ b/lib/Mason/Request.pm
@@ -196,7 +196,7 @@ method visit () {
         push( @extra_request_params, shift(@_) );
     }
     my $path = $self->rel_to_abs( shift(@_) );
-    my $result = $self->interp->run( { out_method => \my $buf }, 
@extra_request_params, $path, @_ );
+    my $result = $self->interp->run( { out_method => \my $buf, %{ 
$self->{orig_request_params} } }, @extra_request_params, $path, @_ );
     $self->print($buf);
     return $result;
 }

On Jun 30, 2011, at 11:28 AM, Jozef Mojzis wrote:

> Hi Jon,
> 
> With index.mc
> 
> <%init>
>    $m->go("/test");
> </%init>
> this is index
> 
> i got an correct internal redirect to "/test.mc".
> 
> But when try the visit method either:
> 
> <%init>
>    $m->visit("/test");
> </%init>
> this is index
> 
> or in the form
> 
> <%init>
>    my $obuff; $m->visit({out_method => \$obuf}, "/test");
> </%init>
> this is index
> 
> 
> got an 2 page long error message like:
> 
> Attribute (req) is required at 
> /Users/jm/perl5/lib/perl5/darwin-thread-multi-2level/Class/MOP/Class.pm line 
> 524
>    
> Class::MOP::Class::_construct_instance('Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x10213b428)',
>  'HASH(0x1021d4350)') called at 
> /Users/jm/perl5/lib/perl5/darwin-thread-multi-2level/Class/MOP/Class.pm line 
> 497
>    
> Class::MOP::Class::new_object('Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x10213b428)',
>  'HASH(0x1021d4350)') called at 
> /Users/jm/perl5/lib/perl5/darwin-thread-multi-2level/Moose/Meta/Class.pm line 
> 269
>    
> Moose::Meta::Class::new_object('Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x10213b428)',
>  'HASH(0x1021d4350)').....
> 
> It is looks like a bug. :)
> 
> Thanx.
> jm.
> 
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Mason-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to