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 2012/12/17 14:54:08 UTC

[Bug 54320] New: Regression: can not activate activate directory listings parameter for DefaultServlet STRICT_SERVLET_COMPLIANCE

https://issues.apache.org/bugzilla/show_bug.cgi?id=54320

            Bug ID: 54320
           Summary: Regression: can not activate activate directory
                    listings parameter for DefaultServlet
                    STRICT_SERVLET_COMPLIANCE
           Product: Tomcat 7
           Version: 7.0.34
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: cedrik.lime@gmail.com
    Classification: Unclassified

Since Tomcat 7, one can not enable directory listings (in conf/web.xml) while
simultaneously enabling strict servlet compliance (by setting the
org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property): one gets a 404
response.

This is a regression compared to Tomcat 5.5 and Tomcat 6.

The Servlet 3.0 specification states §10.10:
"If no matching welcome file is found in the manner described, the container
may handle the request in a manner it finds suitable. For some configurations
this may mean returning a directory listing or for others returning a 404
response."

so this new behaviour is still specification compliant strictly speaking.
But still I would really like to enable directory listings (which is also
specification compliant)! :-)

(And yes, I do know the warnings / trade-offs about enabling those listings.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54320] Regression: can not activate activate directory listings parameter for DefaultServlet STRICT_SERVLET_COMPLIANCE

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54320

--- Comment #2 from Violeta Georgieva <vi...@apache.org> ---
Hi,

You still can achieve directory listing and strict servlet compliance together.
You need to add in the context.xml additional configuration -
"resourceOnlyServlets=default,jsp".
More information can be seen in the documentation -
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes

Regards
Violeta Georgieva

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 54320] Regression: can not activate activate directory listings parameter for DefaultServlet STRICT_SERVLET_COMPLIANCE

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54320

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
Thanks for tracking this down Violeta.

>From the original report, it sounded like a welcome file issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 54320] Regression: can not activate activate directory listings parameter for DefaultServlet STRICT_SERVLET_COMPLIANCE

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54320

--- Comment #4 from Cédrik LIME <ce...@gmail.com> ---
Thanks for the heads up, Violeta!

Strangely enough, specifying "resourceOnlyServlets=jsp" is enough, even though
it is the DefaultServlet that is serving the listing.

As this is a new behaviour for Tomcat 7, it might be worth to add a note in the
the documentation and/or conf/web.xml's DefaultServlet comments.

Regards,
Cédrik

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54320] Regression: can not activate activate directory listings parameter for DefaultServlet STRICT_SERVLET_COMPLIANCE

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54320

--- Comment #1 from Violeta Georgieva <vi...@apache.org> ---
Hi,

I'm going to work on this.

Regards
Violeta

-- 
You are receiving this mail because:
You are the assignee for the bug.

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