httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <grega...@raleigh.ibm.com>
Subject Re: [PATCH] filtering and canned error responses
Date Wed, 06 Sep 2000 15:46:29 GMT
Tony Finch wrote:
> 
> rbb@covalent.net wrote:
> >
> >Well, this is where things start to get a little complicated, 
[...] 
                                                         So, this
> >leaves us with two options.
> >
> >1)  A filter that soaks up input and replaces it with the error page.
> >2)  A completely separate function that co-opts the request processing,
> >and sets up a new filter stack.
> 
> This is called an internal redirect, isn't it? 

[...]
> 
> I.e. make subrequests work and error documents will fall out in the
> wash :-)
> 
I agree with Tony.  Option 3): Use the existing logic that does the job,
and fix it if necessary.  ErrorDocument works fine for me.  It acts like
it's doing an internal redirect if you give it an URI.  That ought to
automagically set up a new filter stack if that's what you want/need.  I
pointed ErrorDocument at index.html.fr, and it worked as expected with
IE5.  I'm assuming it went thru the chunking and core filters, but
haven't proven it.  I don't know if this drives subrequests, but it
works.

I also tried pointing ErrorDocument to a non-existant document for a 404
and it behaves sensibly (detects the recursive error and sends a canned
error message to the browser which has the usual canned 404 text and in
addition tells you that the ErrorDocument directive is broken).

But that doesn't really address what Jeff was trying to fix when he
started this thread - the canned error text case.  In this case the
response may have different characteristics (charset pairs, content
type) than what the hook phases prior to the handler/generator have
decided and might be remembering.  So any filters that must be invoked
may do the wrong thing if we're not careful.  

And how do we decide which filters are the bare minimum for the canned
error text/recursive error case?  Kevin makes a good point about
html->wml filtering.  We need some kind of charset xlation on ebcdic
boxes.

Greg

Mime
View raw message