Subject: | finalize doesn't know about DECLINED requests |
The Catalyst::Engine::Apache docs show how to decline a request and pass
it on to the next handler by setting $c->engine->return; unfortunately
Engine::Apache doesn't know anything about this. Unless you do an endrun
around finalize in your app, Engine::Apache will print output and send
back headers even on a declined request. Apparently, printing output
makes apache unhappy.
I'm not 100% clear what the best solution is, but I'd suggest having
finalize call finalize_uploads and nothing else, if $c->engine->return
is Apache::Constants::DECLINED or Apache2::Const::DECLINED (as
appropriate). Maybe some of the other ones as well -- I'll admit that
I'm not a mod_perl whiz, I'm just submitting on behalf of someone who
came by #catalyst with a problem. Nonetheless if you'd like more info or
if IRC logs would help, you're welcome to contact me.