Re: [MP2]mod_perl and index.html

2008-06-27 Thread titetluc titetluc
Torsten, I created a bug. Bug number is 45297 Thank you very much for your help 2008/6/27, Torsten Foertsch <[EMAIL PROTECTED]>: > > On Fri 27 Jun 2008, titetluc titetluc wrote: > > Would it be rather a wrong httpd configuration: my requi

Re: [MP2]mod_perl and index.html

2008-06-27 Thread titetluc titetluc
2008/6/27, Rolf Schaufelberger <[EMAIL PROTECTED]>: > > Am Donnerstag, 26. Juni 2008 16:36:49 schrieb titetluc titetluc: > > > > > sub set_user { > > > > my ($self, $r) = @_; > > > > Shouldn't that be > > sub set_user :method { > my ($self, $r) = @_; > > When you use $r as second argume

Re: [MP2]mod_perl and index.html

2008-06-27 Thread Rolf Schaufelberger
Am Donnerstag, 26. Juni 2008 16:36:49 schrieb titetluc titetluc: > > > sub set_user { > > >     my ($self, $r) = @_; Shouldn't that be sub set_user :method { my ($self, $r) = @_; When you use $r as second argument ? -- Rolf Schaufelberger

Re: [MP2]mod_perl and index.html

2008-06-27 Thread Torsten Foertsch
On Fri 27 Jun 2008, titetluc titetluc wrote: > Would it be rather a wrong httpd configuration: my requirement is very > common (calling a response handler for an index.html and access the r->user > information). I may misconfigure Apache > > BTW, how can I verify if it is a bug ? Which apache

Re: [MP2]mod_perl and index.html

2008-06-27 Thread titetluc titetluc
2008/6/26, Torsten Foertsch <[EMAIL PROTECTED]>: > > On Thu 26 Jun 2008, titetluc titetluc wrote: > > In PerlResponseHandler, $r->main and $r->prev are undefined. I can not > > understand why $r->main AND $r->prev are not defined (intuitively, > $r->prev > > should be defined) > > > I'd expect $r->

Re: [MP2]mod_perl and index.html

2008-06-26 Thread Torsten Foertsch
On Thu 26 Jun 2008, titetluc titetluc wrote: > In PerlResponseHandler, $r->main and $r->prev are undefined. I can not > understand why $r->main AND $r->prev are not defined (intuitively, $r->prev > should be defined) I'd expect $r->user to be set, not $r->prev->user nor $r->main->user. But I'd ex

Re: [MP2]mod_perl and index.html

2008-06-26 Thread titetluc titetluc
2008/6/26 Torsten Foertsch <[EMAIL PROTECTED]>: > On Wed 25 Jun 2008, titetluc titetluc wrote: > > PerlModule Test > > > > Require valid-user > > AuthType basic > > AuthName test_index > > SetHandler perl-script > > > > PerlAuthenHandler Apache2::AuthSSO::Test->set_user > > >

Re: [MP2]mod_perl and index.html

2008-06-26 Thread Torsten Foertsch
On Wed 25 Jun 2008, titetluc titetluc wrote: > PerlModule Test > >     Require valid-user >     AuthType basic >     AuthName test_index >     SetHandler perl-script > >     PerlAuthenHandler Apache2::AuthSSO::Test->set_user > >     PerlResponseHandler Apache2::AuthSSO::Test->display_user > > > I

Re: [MP2]mod_perl and index.html

2008-06-25 Thread titetluc titetluc
2008/6/25 titetluc titetluc <[EMAIL PROTECTED]>: > Hello all > > I am writing a Perl module to authenticate users (using mod_perl2 and httpd > 2.2.6. > I would like to display the user name (r->user) when accessing a directory > (/test_index/index.html) > > I have the following httpd configuration

[MP2]mod_perl and index.html

2008-06-24 Thread titetluc titetluc
Hello all I am writing a Perl module to authenticate users (using mod_perl2 and httpd 2.2.6. I would like to display the user name (r->user) when accessing a directory (/test_index/index.html) I have the following httpd configuration DirectoryIndex index.html Options +indexes PerlModu