Re: [ANNOUNCE] mod_perl 2.0.0-RC6

[prev] [thread] [next] [Date index for 2005/05/05]

From: Steve Hay
Subject: Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Date: 16:00 on 05 May 2005
Randy Kobes wrote:

>On Thu, 5 May 2005, Markus Wichitill wrote:
>
>  
>
>>Steve Hay wrote:
>>    
>>
>>>>how can we test if the filehandle is valid then? may be we should skip
>>>>that bit altogether? Steve, does it work if you comment out the whole
>>>>
>>>> if (!size) { ... }
>>>>
>>>>block?
>>>>        
>>>>
>>>No, it doesn't :(
>>>      
>>>
>>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 :(


>===================================================================
>Index: xs/APR/Status/APR__Status.h
>===================================================================
>--- xs/APR/Status/APR__Status.h	(revision 168337)
>+++ xs/APR/Status/APR__Status.h	(working copy)
>@@ -16,3 +16,5 @@
> #include "apr_errno.h"
>
> #define mpxs_APR__Status_is_EAGAIN APR_STATUS_IS_EAGAIN
>+#define mpxs_APR__Status_is_EACCES APR_STATUS_IS_EACCES
>+#define mpxs_APR__Status_is_ENOENT APR_STATUS_IS_ENOENT
>Index: xs/maps/apr_functions.map
>===================================================================
>--- xs/maps/apr_functions.map	(revision 168337)
>+++ xs/maps/apr_functions.map	(working copy)
>@@ -649,3 +649,5 @@
>
> MODULE=APR::Status      PREFIX=mpxs_APR__STATUS_
>  int:DEFINE_is_EAGAIN | | apr_status_t:rc
>+ int:DEFINE_is_EACCES | | apr_status_t:rc
>+ int:DEFINE_is_ENOENT | | apr_status_t:rc
>Index: ModPerl-Registry/lib/ModPerl/RegistryCooker.pm
>===================================================================
>--- ModPerl-Registry/lib/ModPerl/RegistryCooker.pm	(revision 168337)
>+++ ModPerl-Registry/lib/ModPerl/RegistryCooker.pm	(working copy)
>@@ -34,6 +34,7 @@
> use Apache2::Access ();
>
> use APR::Table ();
>+use APR::Status ();
>
> use ModPerl::Util ();
> use ModPerl::Global ();
>@@ -41,7 +42,6 @@
> use File::Spec::Functions ();
> use File::Basename;
>
>-use APR::Const     -compile => qw(EACCES ENOENT);
> use Apache2::Const  -compile => qw(:common &OPT_EXECCGI);
> use ModPerl::Const -compile => 'EXIT';
>
>@@ -542,8 +542,8 @@
>         $self->log_error("$@");
>
>         if (ref $@ eq 'APR::Error') {
>-            return Apache2::Const::FORBIDDEN if $@ == APR::Const::EACCES;
>-            return Apache2::Const::NOT_FOUND if $@ == APR::Const::ENOENT;
>+            return Apache2::Const::FORBIDDEN if APR::Status::is_EACCES($@);
>+            return Apache2::Const::NOT_FOUND if APR::Status::is_ENOENT($@);
>         }
>         else {
>             return Apache2::Const::SERVER_ERROR;
>
>========================================================================
>
>  
>



------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only.  If you have received this message in error or there are any problems, please notify the sender immediately.  The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden.  Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd.  The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.

(message missing)

[ANNOUNCE] mod_perl 2.0.0-RC6
Stas Bekman 06:26 on 04 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Octavian Rasnita 09:47 on 04 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Stas Bekman 02:34 on 10 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Steve Hay 10:36 on 04 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Markus Wichitill 13:44 on 04 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Stas Bekman 06:40 on 05 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Steve Hay 09:28 on 05 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Stas Bekman 14:35 on 05 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Markus Wichitill 14:47 on 05 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Randy Kobes 15:25 on 05 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Steve Hay 16:00 on 05 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Markus Wichitill 16:13 on 05 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Randy Kobes 16:54 on 05 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Steve Hay 17:08 on 05 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Stas Bekman 05:27 on 06 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Randy Kobes 05:40 on 06 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Markus Wichitill 10:11 on 06 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Steve Hay 10:31 on 06 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Randy Kobes 13:29 on 06 May 2005

Graphics / Pie Charts
David Hofmann 19:34 on 06 May 2005

Re: Graphics / Pie Charts
Sam Tregar 19:40 on 06 May 2005

Re: Graphics / Pie Charts
Hans Poo 21:01 on 06 May 2005

Re: Graphics / Pie Charts
Jeff Ambrosino 21:31 on 06 May 2005

Re: Graphics / Pie Charts
Jay Scherrer 23:57 on 06 May 2005

Re: Graphics / Pie Charts
Foo Ji-Haw 05:47 on 07 May 2005

Re: Graphics / Pie Charts
Tom Schindl 13:07 on 07 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Tom Williams 19:43 on 07 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Stas Bekman 07:16 on 08 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Tom Williams 14:21 on 08 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Stas Bekman 15:11 on 08 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Stas Bekman 02:00 on 10 May 2005

Re: [ANNOUNCE] mod_perl 2.0.0-RC6
Stas Bekman 06:50 on 07 May 2005

Generated at 06:57 on 17 May 2005 by mariachi v0.52