Bug report #661 has just been filed. You can view the report at the following URL: <http://znutar.cortexity.com/BugRatViewer/ShowReport/661> REPORT #661 Details. Project: Tomcat Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: medium Severity: non-critical Confidence: public Environment: Release: jakarta-tomcat-3.2.1 JVM Release: Java2 Standard Edition Build 1.3.0_01 Operating System: Windows 2000 Professional OS Release: Version 5 Build 2195 Platform: Pentium III Synopsis: examples/ShowSource always reports "Invalid JSP file" due to logic error in ShowSource.java Description: Within the source for the ShowSource tab from the examples context, ie. the file installed at: $(TOMCAT_HOME)\webapps\examples\WEB-INF\classes\examples\ShowSource.java, lines 23 to 26 look like this: if ((jspFile.indexOf( ".." ) >= 0) || (jspFile.toUpperCase().indexOf("/WEB-INF/") != 0) || (jspFile.toUpperCase().indexOf("/META-INF/") != 0)) throw new JspTagException("Invalid JSP file " + jspFile); lines 24 and 25 should use "!= -1" rather than "!= 0" This effects the "show source" links of all the jsp examples that use the "ShowSource" tag.Title: BugRat Report # 661
BugRat Report # 661
Project: Tomcat | Release: jakarta-tomcat-3.2.1 |
Category: Bug Report | SubCategory: New Bug Report |
Class: swbug | State: received |
Priority: medium | Severity: non-critical |
Confidence:
public
|
Submitter:
Tony Robertson ( [EMAIL PROTECTED] )
Date Submitted:
Dec 22 2000, 11:19:25 CST
Responsible:
Z_Tomcat Alias ( [EMAIL PROTECTED] )
- Synopsis:
- examples/ShowSource always reports "Invalid JSP file" due to logic error in ShowSource.java
- Environment: (jvm, os, osrel, platform)
- Java2 Standard Edition Build 1.3.0_01, Windows 2000 Professional, Version 5 Build 2195, Pentium III
- Additional Environment Description:
- Report Description:
- Within the source for the ShowSource tab from the examples context, ie. the file installed at: $(TOMCAT_HOME)\webapps\examples\WEB-INF\classes\examples\ShowSource.java, lines 23 to 26 look like this: if ((jspFile.indexOf( ".." ) >= 0) || (jspFile.toUpperCase().indexOf("/WEB-INF/") != 0) || (jspFile.toUpperCase().indexOf("/META-INF/") != 0)) throw new JspTagException("Invalid JSP file " + jspFile); lines 24 and 25 should use "!= -1" rather than "!= 0" This effects the "show source" links of all the jsp examples that use the "ShowSource" tag.
- How To Reproduce:
- null
- Workaround:
- null