You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by joel reed <jr...@ddiworld.com> on 2003/05/12 17:31:01 UTC
bug in dir_config with mod_perl-1.99_09
using Apache-ASP-2.53 with mod_perl-1.99_09 the following
configuration choice doesn't work:
PerlSetVar AllowSessionState 0
in ASP.pm, the sub config() calling
$self->{r}->dir_config($key)
gets back undef and thus in StateManager.pm:
$self->{session_state} = &config($self, 'AllowSessionState', undef, 1);
return 1!
if you change the above configuration choice to
PerlSetVar AllowSessionState off
it works ok. should we change the docs? this seems like it could
be a mod_perl bug but i'm not sure...
jr
--
------------------------------------------------------------
Joel W. Reed 412-257-3881
-------- http://home.attbi.com/~joelwreed/ ----------
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: bug in dir_config with mod_perl-1.99_09
Posted by joel reed <jr...@ddiworld.com>.
On 05/12/03, Helmut Zeilinger <h....@envirotex.de> wrote:
> Hi,
>
> using mod_perl 1.99_09 the following handler
>
> [..]
> sub handler
> {
> my $r = shift();
> $r->content_type('text/plain');
> print $ENV{'MOD_PERL'}, "\n";
> print $r->dir_config ('AllowSessionState');
> return OK;
> }
> [..]
>
> displays
>
> mod_perl/1.99_09
> 0
>
> in the browser when "PerlSetVar AllowSessionState 0" is set in the config
> file.
> So it is probably not a mod_perl bug?
> Did you test a previous mp2 version?
thank you Helmut for testing the above. i tried mod_perl-1.99_09
and mod_perl-1.99_08. i'll have to dig deeper into Apache-ASP...
jr
>
> Helmut
>
>
> --On Monday, May 12, 2003 11:31:01 -0400 joel reed <jr...@ddiworld.com>
> wrote:
>
> >using Apache-ASP-2.53 with mod_perl-1.99_09 the following
> >configuration choice doesn't work:
> >
> > PerlSetVar AllowSessionState 0
> >
> >in ASP.pm, the sub config() calling
> >
> > $self->{r}->dir_config($key)
> >
> >gets back undef and thus in StateManager.pm:
> >
> > $self->{session_state} = &config($self, 'AllowSessionState', undef, 1);
> >
> >return 1!
> >
> >if you change the above configuration choice to
> >
> > PerlSetVar AllowSessionState off
> >
> >it works ok. should we change the docs? this seems like it could
> >be a mod_perl bug but i'm not sure...
> >
> >jr
> >
> >--
> >------------------------------------------------------------
> >Joel W. Reed 412-257-3881
> >-------- http://home.attbi.com/~joelwreed/ ----------
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> >For additional commands, e-mail: asp-help@perl.apache.org
> >
> >
>
>
>
--
------------------------------------------------------------
Joel W. Reed 412-257-3881
-------- http://home.attbi.com/~joelwreed/ ----------
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: bug in dir_config with mod_perl-1.99_09
Posted by Helmut Zeilinger <h....@envirotex.de>.
Hi,
using mod_perl 1.99_09 the following handler
[..]
sub handler
{
my $r = shift();
$r->content_type('text/plain');
print $ENV{'MOD_PERL'}, "\n";
print $r->dir_config ('AllowSessionState');
return OK;
}
[..]
displays
mod_perl/1.99_09
0
in the browser when "PerlSetVar AllowSessionState 0" is set in the config
file.
So it is probably not a mod_perl bug?
Did you test a previous mp2 version?
Helmut
--On Monday, May 12, 2003 11:31:01 -0400 joel reed <jr...@ddiworld.com>
wrote:
> using Apache-ASP-2.53 with mod_perl-1.99_09 the following
> configuration choice doesn't work:
>
> PerlSetVar AllowSessionState 0
>
> in ASP.pm, the sub config() calling
>
> $self->{r}->dir_config($key)
>
> gets back undef and thus in StateManager.pm:
>
> $self->{session_state} = &config($self, 'AllowSessionState', undef, 1);
>
> return 1!
>
> if you change the above configuration choice to
>
> PerlSetVar AllowSessionState off
>
> it works ok. should we change the docs? this seems like it could
> be a mod_perl bug but i'm not sure...
>
> jr
>
> --
> ------------------------------------------------------------
> Joel W. Reed 412-257-3881
> -------- http://home.attbi.com/~joelwreed/ ----------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: bug in dir_config with mod_perl-1.99_09
Posted by Josh Chamas <jo...@chamas.com>.
joel reed wrote:
> using Apache-ASP-2.53 with mod_perl-1.99_09 the following
> configuration choice doesn't work:
>
> PerlSetVar AllowSessionState 0
>
> in ASP.pm, the sub config() calling
>
> $self->{r}->dir_config($key)
>
> gets back undef and thus in StateManager.pm:
>
> $self->{session_state} = &config($self, 'AllowSessionState', undef, 1);
>
> return 1!
>
> if you change the above configuration choice to
>
> PerlSetVar AllowSessionState off
>
> it works ok. should we change the docs? this seems like it could
> be a mod_perl bug but i'm not sure...
>
Yes, I agree this is probably a mod_perl bug. I had seen things like
this happen with mod_perl 1.xx, but it was only when there was
something like:
PerlSetVar Something 1
<Directory ...>
PerlSetVar Something 0
</Directory>
and the inner setting would not work!
This is what led me to implement Off == 0 functionality.
I need to do a pretty big documentation overhaul and fix everything
that is 1/0 configs to On/Off, which works correctly today, and the
past couple releases.
Regards,
Josh
________________________________________________________________
Josh Chamas, Founder phone:925-552-0128
Chamas Enterprises Inc. http://www.chamas.com
NodeWorks Link Checking http://www.nodeworks.com
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org