Skip Menu |

This queue is for tickets about the Apache-Session-Wrapper CPAN distribution.

Report information
The Basics
Id: 17564
Status: resolved
Priority: 0/
Queue: Apache-Session-Wrapper

People
Owner: Nobody in particular
Requestors: peter.payne [...] optus.com.au
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.19
Fixed in: (no value)



Subject: mod_perl2 patch for Apache::Session::Wrapper
A fix for getting mod_perl2 2.0.2 and Apache2 to return headers correctly is to change Wrapper.pm: if ( $cookie->can('bake') ) { # Apache::Cookie $cookie->bake; } else { my $header_object = $self->{header_object}; for my $meth (@HeaderMethods) { if ( $header_object->can($meth) ) { * if ( $header_object->$meth->can('add') ) { * $header_object->$meth->add( 'Set-Cookie' => $cookie ); * last; * } $header_object->$meth( 'Set-Cookie' => $cookie ); last; } } } adding the starred lines. Previously I was getting the error message: Usage: Apache2::RequestRec::err_headers_out(obj, val=NULL) at /usr/share/perl5/Apache/Session/Wrapper.pm line 624. Stack: [/usr/share/perl5/HTML/Mason/ApacheHandler.pm:889] [/usr/share/perl5/HTML/Mason/ApacheHandler.pm:829] Peter
Subject: Re: [rt.cpan.org #17564] mod_perl2 patch for Apache::Session::Wrapper
Date: Fri, 10 Feb 2006 10:39:27 -0600 (CST)
To: Guest via RT <bug-Apache-Session-Wrapper [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Fri, 10 Feb 2006, Guest via RT wrote: Show quoted text
> A fix for getting mod_perl2 2.0.2 and Apache2 to return headers > correctly is to change Wrapper.pm: > > if ( $cookie->can('bake') ) > { > # Apache::Cookie > $cookie->bake; > } > else > { > my $header_object = $self->{header_object}; > for my $meth (@HeaderMethods) > { > if ( $header_object->can($meth) ) > { > * if ( $header_object->$meth->can('add') ) { > * $header_object->$meth->add( 'Set-Cookie' => $cookie ); > * last; > * } > $header_object->$meth( 'Set-Cookie' => $cookie ); > last; > } > } > }
What version are you using. A similar fix is in version 0.26. -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/
Subject: RE: [rt.cpan.org #17564] mod_perl2 patch for Apache::Session::Wrapper
Date: Mon, 13 Feb 2006 09:32:08 +1100
To: <bug-Apache-Session-Wrapper [...] rt.cpan.org>
From: "Peter Payne" <Peter.Payne [...] optus.com.au>
Ah fantastic! Sorry for taking up your time. The problems arose from trying to mix stable/testing versions of Debian Sarge packages, when the fix was applied to perhaps an unstable version of this module. Many thanks, Peter Show quoted text
-----Original Message----- From: autarch@urth.org via RT [mailto:bug-Apache-Session-Wrapper@rt.cpan.org] Sent: Saturday, 11 February 2006 3:40 AM To: Peter Payne Subject: Re: [rt.cpan.org #17564] mod_perl2 patch for Apache::Session::Wrapper On Fri, 10 Feb 2006, Guest via RT wrote:
> A fix for getting mod_perl2 2.0.2 and Apache2 to return headers > correctly is to change Wrapper.pm: > > if ( $cookie->can('bake') ) > { > # Apache::Cookie > $cookie->bake; > } > else > { > my $header_object = $self->{header_object}; > for my $meth (@HeaderMethods) > { > if ( $header_object->can($meth) ) > { > * if ( $header_object->$meth->can('add') ) { > * $header_object->$meth->add( 'Set-Cookie' =>
$cookie );
> * last; > * } > $header_object->$meth( 'Set-Cookie' => $cookie ); > last; > } > } > }
What version are you using. A similar fix is in version 0.26. -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/