ASF Bugzilla – Attachment 14788 Details for
Bug 34465
jasper2 fails when there is no web.xml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch for JspCServletContext#getResource
patch (text/plain), 986 bytes, created by
Yoichi Hirose
on 2005-04-22 10:41:55 UTC
(
hide
)
Description:
A patch for JspCServletContext#getResource
Filename:
MIME Type:
Creator:
Yoichi Hirose
Created:
2005-04-22 10:41:55 UTC
Size:
986 bytes
patch
obsolete
>diff -aruN jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspCServletContext.java jakarta-tomcat-jasper-patched/jasper2/src/share/org/apache/jasper/servlet/JspCServletContext.java >--- jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspCServletContext.java 2005-03-26 14:22:46.000000000 +0900 >+++ jakarta-tomcat-jasper-patched/jasper2/src/share/org/apache/jasper/servlet/JspCServletContext.java 2005-04-22 17:38:15.119393500 +0900 >@@ -235,7 +235,13 @@ > if (!path.startsWith("/")) > throw new MalformedURLException("Path '" + path + > "' does not start with '/'"); >- return (new URL(myResourceBaseURL, path.substring(1))); >+ URL url = new URL(myResourceBaseURL, path.substring(1)); >+ if ("file".equals(url.getProtocol())) { >+ if (!(new File(url.getFile())).exists()) { >+ return null; >+ } >+ } >+ return url; > > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34465
:
14728
| 14788