Package: libmasonx-request-withapachesession-perl
Version: 0.30-1
Severity: normal
Tags: patch

Due to a mistaken 'return' statement, the "new" subroutine on
MasonX::Request::WithApacheSession returns an undefined value if a
subrequest is created, rather than returning itself.

$m->make_subrequest would simply return null, and $m->subexec
would thusly complain about being unable to run 'exec' on an
undefined object.

A patch is attached.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (400, 'stable'), (300, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.10-1-686
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)

Versions of packages libmasonx-request-withapachesession-perl depends on:
ii  libapache-request-perl        1.1-0.1    Generic Apache Request Library
ii  libapache-session-perl        1.60-2     Perl modules for keeping persisten
ii  libapache-session-wrapper-per 0.21-1     A simple wrapper around Apache::Se
ii  libhtml-mason-perl            1:1.30-1   HTML::Mason Perl module
ii  perl [perl5]                  5.8.7-3    Larry Wall's Practical Extraction 

libmasonx-request-withapachesession-perl recommends no packages.

-- no debconf information
--- /tmp/WithApacheSession.pm.old       2005-09-14 23:27:49.648664936 -0400
+++ /usr/share/perl5/MasonX/Request/WithApacheSession.pm        2005-09-14 
23:03:09.795603823 -0400
@@ -74,7 +74,7 @@
 
     my $self = $class->SUPER::new(@_);
 
-    return if $self->is_subrequest;
+    return $self if $self->is_subrequest;
 
     # backwards compatibility
     $self->{session_param_name} =

Attachment: signature.asc
Description: Digital signature

Reply via email to