rning DECLINED i think.
Adam
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]
Sent: Monday, April 02, 2007 12:29 PM
To: Adam Prime x443
Cc: foobar; modperl@perl.apache.org
Subject: Re: mod_perl2 handler headache
On 4/2/07, Adam Prime x443 <[EMAIL PROTECTED]> wro
On 4/2/07, Adam Prime x443 <[EMAIL PROTECTED]> wrote:
you want:
sub handler {
my $r = shift;
my $uri = $r->uri;
return DECLINED if $url =~ /^\/gallery;
# not a gallery request... do some stuff and return an XML document
}
I don't think it's that simple. He must have already
gallery request... do some stuff and return an XML document
}
--
View this message in context:
http://www.nabble.com/mod_perl2-handler-headache-tf3506042.html#a9793569
Sent from the mod_perl - General mailing list archive at Nabble.com.
ssage-
From: foobar [mailto:[EMAIL PROTECTED]
Sent: Monday, April 02, 2007 11:00 AM
To: modperl@perl.apache.org
Subject: Re: mod_perl2 handler headache
Perrin Harkins-3 wrote:
>
> On 4/2/07, foobar <[EMAIL PROTECTED]> wrote:
>> I'm not sure if this is a configuration
To: modperl@perl.apache.org
Subject: RE: mod_perl2 handler headache
Adam Prime x443 wrote:
>
>
> That looks ok to me. Is there a ResponseHandler as well for the
> gallery, or just the AccessHandler?
>
> The symptoms you're describing seem like OK is getting returned
llery_id || ! $imagefile) {
return FORBIDDEN;
}
# if users account type is good to view this gallery return OK
return OK if $r->pnotes('member')->can_view_gallery($gallery_id);
}
# catch everything else
return FORBIDDEN;
}
--
On 4/2/07, foobar <[EMAIL PROTECTED]> wrote:
I'm not sure if this is a configuration problem or a design fault. I can see
that both handlers are called but why my image file length is zero bytes is
beyond me.
Sounds like a problem in the access handler code. Can you show it to us?
- Perrin
handlers are called but why my image file length is zero bytes is
beyond me.
Any help greatly appreciated
--
View this message in context:
http://www.nabble.com/mod_perl2-handler-headache-tf3506042.html#a9791725
Sent from the mod_perl - General mailing list archive at Nabble.com.