tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: [5] welcome files not compliant?
Date Fri, 25 Jul 2003 18:42:37 GMT

----- Original Message -----
From: "Tim Funk" <funkman@joedog.org>
To: "Tomcat Developers List" <tomcat-dev@jakarta.apache.org>
Sent: Friday, July 25, 2003 3:59 AM
Subject: [5] welcome files not compliant?


> The default tomcat install has a welcome file list of:
> index.html
> index.htm
> index.jsp
>
> On a HEAD build with no changes to ROOT webapp - all is OK. But if I
create a
> file index.html, then index.jsp still gets served.
>
> On a (very)quick glance of the mapper, I see rule 4 and 6:
> // Rule 4 -- Welcome resources processing for servlets
> // Rule 6 -- Welcome resources processing for physical folder
>
> This leads me to believe that servlets get served as welcome files before
> physical files can be served which doesn't follow the order constaint.

I've been meaning to get around to that one.  Yes, it's broken.

>
> As a bonus question: Do we still need any welcome file processing anymore
in
> default servlet since the decoding is done in the mapper? Or can the
default
> servlet immediately return the directory listing (or forbidden) on
directory
> match?

Probably not.  And since the way DefaultServlet handles welcome-files is now
forbidden in the spec we might as well get rid of the processing.

>
> -Tim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>


Mime
View raw message