ASF Bugzilla – Attachment 35897 Details for
Bug 62329
AbstractArchiveResourceSet#listWebAppPaths does not list directories if the zip central directory doesn't have them
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
tomcat.patch (text/plain), 1.13 KB, created by
Meelis Müür
on 2018-04-27 08:38:40 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Meelis Müür
Created:
2018-04-27 08:38:40 UTC
Size:
1.13 KB
patch
obsolete
>Index: java/org/apache/catalina/webresources/AbstractArchiveResourceSet.java >=================================================================== >--- java/org/apache/catalina/webresources/AbstractArchiveResourceSet.java (revision 1830284) >+++ java/org/apache/catalina/webresources/AbstractArchiveResourceSet.java (working copy) >@@ -136,12 +136,10 @@ > if (name.length() > pathInJar.length() && > name.startsWith(pathInJar)) { > int nextSlash = name.indexOf('/', pathInJar.length()); >- if (nextSlash == -1 || nextSlash == name.length() - 1) { >- if (name.startsWith(pathInJar)) { >- result.add(webAppMount + '/' + >- name.substring(getInternalPath().length())); >- } >+ if (nextSlash != -1 && nextSlash != name.length() - 1) { >+ name = name.substring(0, nextSlash + 1); > } >+ result.add(webAppMount + '/' + name.substring(getInternalPath().length())); > } > } > } else {
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 62329
: 35897