Skip Menu |

This queue is for tickets about the mod_perl CPAN distribution.

Report information
The Basics
Id: 42530
Status: open
Priority: 0/
Queue: mod_perl

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.0.4
Fixed in: (no value)



Subject: Trivial PerlAuthenHandler dies with 500 ISE and no log message
Consider the following tied to PerlAuthenHandler: sub handler { return Apache2::Const::OK; } since it didn't set $->auth_type or $r->user, Apache gets confused. Fair enough. But it then generates a 500 ISE with no logging to this fact. It's taken me all weekend to work out that I need to sub handler { my $r = shift; $r->auth_type("Basic"); $r->user("my-name-here"); return Apache2::Const::OK; } -- Paul Evans
I forgot to add... It would be nice if, at the least, the docs brought much clearer attention to this fact. Preferably with a nice big example showing, for example, the above. Ideally it would be nice if apache threw an error message explaining why it was going to 500 ISE; though I appreciate that might be out of mod_perl's hands and into apache proper. -- Paul Evans