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 2013/01/08 00:56:21 UTC
[Bug 54382] New: Nullpointer Exception after activating SSI and
loading of any html-file with a specific comment
https://issues.apache.org/bugzilla/show_bug.cgi?id=54382
Bug ID: 54382
Summary: Nullpointer Exception after activating SSI and loading
of any html-file with a specific comment
Product: Tomcat 7
Version: 7.0.34
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: bodure@googlemail.com
Classification: Unclassified
1. Activate SSI on Tomcat and restart Tomcat
2. create an any html-file with a comment like this "<!--#-->"
3. put this html-file to the webapp folder of tomcat
4. when you now go to the html file via tomcat, you will get an Nullpointer
Exception. The SSIServlet.class and other necessary SSI-classes cannot be found
--
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 54382] Nullpointer Exception after activating SSI and loading
of any html-file with a specific comment
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54382
--- Comment #2 from Konstantin Kolinko <kn...@gmail.com> ---
Proposed for 6.0.
For the record:
1. The stacktraces in 6.0 are, for SSIServlet and SSIFilter:
java.lang.NullPointerException
org.apache.catalina.ssi.SSIProcessor.process(SSIProcessor.java:132)
org.apache.catalina.ssi.SSIServlet.processSSI(SSIServlet.java:208)
org.apache.catalina.ssi.SSIServlet.requestHandler(SSIServlet.java:174)
org.apache.catalina.ssi.SSIServlet.doGet(SSIServlet.java:110)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
java.lang.NullPointerException
org.apache.catalina.ssi.SSIProcessor.process(SSIProcessor.java:132)
org.apache.catalina.ssi.SSIFilter.doFilter(SSIFilter.java:142)
2. With the patch applied, processing the "<!--#-->" comment replaces it with
the following text:
"[an error occurred while processing this directive]"
and the following is logged into localhost.*.log file:
org.apache.catalina.core.ApplicationContext log
INFO: Unknown command:
This is OK, because there is very little difference between an empty command
name and a wrong command name. If one treats it as a comment and writes any
random text after the '#', it would trigger the same error message.
--
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 54382] Nullpointer Exception after activating SSI and loading
of any html-file with a specific comment
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54382
--- Comment #3 from Konstantin Kolinko <kn...@gmail.com> ---
Fixed in Tomcat 6 by r1476541 , will be in 6.0.37
--
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 54382] Nullpointer Exception after activating SSI and loading
of any html-file with a specific comment
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54382
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
OS| |All
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. This has been fixed in trunk and 7.0.x and will be
included in 7.0.35 onwards.
--
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