ASF Bugzilla – Attachment 20920 Details for
Bug 43241
ServletContext.getResourceAsStream() does not follow API specs for Path
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
one way of fixing this
BZ-43241-getResourceAsStream.patch (text/plain), 558 bytes, created by
John Kew
on 2007-10-04 15:36:32 UTC
(
hide
)
Description:
one way of fixing this
Filename:
MIME Type:
Creator:
John Kew
Created:
2007-10-04 15:36:32 UTC
Size:
558 bytes
patch
obsolete
>Index: java/org/apache/catalina/core/ApplicationContext.java >=================================================================== >--- java/org/apache/catalina/core/ApplicationContext.java (revision 581978) >+++ java/org/apache/catalina/core/ApplicationContext.java (working copy) >@@ -507,7 +507,7 @@ > public InputStream getResourceAsStream(String path) { > > path = normalize(path); >- if (path == null) >+ if (path == null || !path.startsWith("/")) > return (null); > > DirContext resources = context.getResources();
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 43241
:
20919
| 20920