larryi 01/11/26 19:54:36 Modified: src/facade22/org/apache/tomcat/facade JspInterceptor.java Log: Verify JSP flie exists before attempting to compile. Avoids unnecessarily creating work directories and version file. Fix for Bugzilla #5005. Revision Changes Path 1.31 +9 -0 jakarta-tomcat/src/facade22/org/apache/tomcat/facade/JspInterceptor.java Index: JspInterceptor.java =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/JspInterceptor.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- JspInterceptor.java 2001/11/07 13:38:36 1.30 +++ JspInterceptor.java 2001/11/27 03:54:35 1.31 @@ -606,6 +606,15 @@ return 0; } + // If unsafe path or JSP file doesn't exist, return "not found" + // Avoids creating work directories for non-existent JSP files + String path=mangler.getJspFilePath(); + if( path == null ) + return 404; + File f = new File( path ); + if( !f.exists() ) + return 404; + // if( debug > 3) ctx.log( "Compiling: " + jspFile + " to " + mangler.getServletClassName());
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>