I've removed the size code, too, and the problem is that after the exception is thrown, neither of the tests in RegistryCooker::read_script apply:
if (ref $@ eq 'APR::Error') { return Apache2::Const::FORBIDDEN if $@ == APR::Const::EACCES; return Apache2::Const::NOT_FOUND if $@ == APR::Const::ENOENT; # oops }
The actual error code returned by apr_file_open is 720002.
Does the following fix this?
No. I was just in the process of trying the same thing myself, but it doesn't fix it for me :(
Works for me, though.