You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/02/01 10:54:33 UTC
DO NOT REPLY [Bug 44337] New: - Dir listing crashes if no readme-file present
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44337>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44337
Summary: Dir listing crashes if no readme-file present
Product: Tomcat 6
Version: 6.0.14
Platform: Sun
URL: http://www.a-weinert.de
OS/Version: Windows Server 2003
Status: NEW
Severity: blocker
Priority: P2
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: albrecht@a-weinert.de
CC: albrecht@a-weinert.de
DefaultServlet docu 6.0 says about attibute readmeFile:
If a directory listing is presented, a readme file
*may*
also be presented with the listing. This file is inserted
.....
This was true for 5.5.x.
6.0.14 crashes if the file is absent in the listed directory.
javax.servlet.ServletException:
Error opening readme resource at
org.apache.catalina.servlets.DefaultServlet.getReadme(DefaultServlet.java:1418)
This new behaviour blocks the listing of big directory trees managed by others,
where the work-around is nor feasible.
Work around 1: readme file in *every* subdir, empty (length=0) if none wanted
(and subsequent changes in the used XSL-Transformers)
Work around 2: Change "may" to "must" in docu.
Repair: fix DefaultServlet
>From web.xml:
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>globalXsltFile</param-name>
<param-value>D:\www\serv-intra\meva-dir-li.xsl</param-value>
</init-param>
<init-param>
<param-name>readmeFile</param-name>
<param-value>readme.htm</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 44337] - Dir listing crashes if no readme-file present
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44337>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44337
------- Additional Comments From funkman@joedog.org 2008-02-02 10:34 -------
Created an attachment (id=21461)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21461&action=view)
Patch to DefaultServlet.java
Patch is for tomcat6 trunk.
When the readme resource is not found. A NamingException is thrown instead of
assuming null is returned.
Patch eats the NamingException and returns null as well as optionally logs it
if debugging turned up very high.
Same condition can occur with the localxslt lookup.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 44337] - Dir listing crashes if no readme-file present
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44337>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44337
funkman@joedog.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From funkman@joedog.org 2008-02-12 08:17 -------
applied to version 6.0.17+
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org