perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <li...@holsman.net>
Subject Re: t/api/access2 failing ?
Date Fri, 07 Jan 2005 15:30:50 GMT
Stas Bekman wrote:
> Ian Holsman wrote:
> 
>> 1. Problem Description:
>>
>> test failing.
>>
>> t/api/access2....1..6
>> # Running under perl version 5.008006 for darwin
>> # Current time local: Thu Jan  6 18:32:40 2005
>> # Current time GMT:   Fri Jan  7 02:32:40 2005
>> # Using Test.pm version 1.25
>> # Using Apache/Test.pm version 1.20
>> ok 1
>> # testing : no credentials passed
>> # expected: 401
>> # received: 403
>> not ok 2
>> # Failed test 2 in t/api/access2.t at line 15
>> ok 3
>> ok 4
>> not ok 5
>> # Failed test 5 in t/api/access2.t at line 24
>> not ok 6
>> # Failed test 6 in t/api/access2.t at line 27
>> FAILED tests 2, 5-6
>>         Failed 3/6 tests, 50.00% okay
>> Failed Test     Stat Wstat Total Fail  Failed  List of Failed
>> ------------------------------------------------------------------------------- 
>>
>> t/api/access2.t                6    3  50.00%  2 5-6
>> Failed 1/1 test scripts, 0.00% okay. 3/6 subtests failed, 50.00% okay.
>> [warning] server localhost:8529 shutdown
>> [warning] port 8529 still in use...
>> done
>> [  error] error running tests (please examine t/logs/error_log)
>>
>>
>> END in modperl_extra.pl, pid=27527
>> END in modperl_extra.pl, pid=27527
>> [Thu Jan 06 18:32:39 2005] [notice] Apache/2.0.52 (Unix) world 
>> domination series/2.0 mod_perl/1.999.21-dev Perl/v5.8.6 configured -- 
>> resuming normal operations
>> [Thu Jan 06 18:32:39 2005] [info] Server built: Dec 20 2004 12:33:06
>> [Thu Jan 06 18:32:39 2005] [debug] worker.c(1631): AcceptMutex: 
>> sysvsem (default: sysvsem)
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by 
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by 
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by 
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by 
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by 
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by 
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
> 
> 
> Please show us the t/conf/httpd.conf entry (that's mine :) :
> 
> <Location /TestAPI__access2>
>     PerlAuthenHandler TestAPI::access2
>     PerlResponseHandler Apache::TestHandler::ok1
>     SetHandler modperl
> 
>     <IfModule mod_access.c>
>         # needed to test $r->satisfies
>         Order Deny,Allow
>         Deny from all
>         Allow from rabbit.stason.org
>     </IfModule>
>     AuthType Basic
>     AuthName "Access"
>     Require user goo bar
>     Require group bar tar
>     <Limit POST>
>         Require valid-user
>     </Limit>
>     Satisfy All
>     <IfModule mod_auth.c>
>         # htpasswd -mbc auth-users goo foo
>         # htpasswd -mb auth-users bar mar
>         # using md5 password so it'll work on win32 too
>         AuthUserFile /home/stas/apache.org/mp2-svn/t/htdocs/api/auth-users
>         # group: user1 user2 ...
>         AuthGroupFile 
> /home/stas/apache.org/mp2-svn/t/htdocs/api/auth-groups
>     </IfModule>
> </Location>

It says localhost for me.

<Location /TestAPI__access2>
     PerlAuthenHandler TestAPI::access2
     PerlResponseHandler Apache::TestHandler::ok1
     SetHandler modperl

     <IfModule mod_access.c>
         # needed to test $r->satisfies
         Order Deny,Allow
         Deny from all
         Allow from localhost
     </IfModule>
     AuthType Basic
     AuthName "Access"
     Require user goo bar
     Require group bar tar
     <Limit POST>
         Require valid-user
     </Limit>
     Satisfy All
     <IfModule mod_auth.c>
         # htpasswd -mbc auth-users goo foo
         # htpasswd -mb auth-users bar mar
         # using md5 password so it'll work on win32 too
         AuthUserFile /src/asf/modperl/t/htdocs/api/auth-users
         # group: user1 user2 ...
         AuthGroupFile /src/asf/modperl/t/htdocs/api/auth-groups 

     </IfModule> 

</Location> 



> 
> and see why it has failed. I'd think that the entry in Allow is not 
> matching your client.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message