Author: markt
Date: Wed Jul 26 17:34:34 2006
New Revision: 425917
URL: http://svn.apache.org/viewvc?rev=425917&view=rev
Log:
Fix bug 39592. Stop stack traces for HEAD requests.
Modified:
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/ssi/SSIServletExternalResolver.java
tomcat/container/tc5.5.x/webapps/docs/changelog.xml
Modified:
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/ssi/SSIServletExternalResolver.java
URL:
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/ssi/SSIServletExternalResolver.java?rev=425917&r1=425916&r2=425917&view=diff
==============================================================================
---
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/ssi/SSIServletExternalResolver.java
(original)
+++
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/ssi/SSIServletExternalResolver.java
Wed Jul 26 17:34:34 2006
@@ -533,7 +533,8 @@
// a problem
// if a truly empty file
//were included, but not sure how else to tell.
- if (retVal.equals("")) {
+ if (retVal.equals("") && !req.getMethod().equalsIgnoreCase(
+ org.apache.coyote.http11.Constants.HEAD)) {
throw new IOException("Couldn't find file: " + path);
}
return retVal;
Modified: tomcat/container/tc5.5.x/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/changelog.xml?rev=425917&r1=425916&r2=425917&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Wed Jul 26 17:34:34 2006
@@ -69,6 +69,10 @@
agrees with the classloader documentation regarding shared lib and
CATALINA_BASE. (markt)
</fix>
+ <fix>
+ <bug>39592</bug>: Stop HEAD requests for resources handled by SSI
+ servlet or filter generating stack traces in the logs. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Webapps">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]