ASF Bugzilla – Attachment 34262 Details for
Bug 60146
Performance issue as CachedResource#getInputStream() is not caching data correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that potentially fixes the issue in TC8.5.x and trunk.
tomcat.patch (text/plain), 1.18 KB, created by
mohitchugh
on 2016-09-18 17:11:15 UTC
(
hide
)
Description:
Patch that potentially fixes the issue in TC8.5.x and trunk.
Filename:
MIME Type:
Creator:
mohitchugh
Created:
2016-09-18 17:11:15 UTC
Size:
1.18 KB
patch
obsolete
>Index: tc8.5.x/trunk/java/org/apache/catalina/webresources/CachedResource.java >=================================================================== >--- tc8.5.x/trunk/java/org/apache/catalina/webresources/CachedResource.java (revision 1761338) >+++ tc8.5.x/trunk/java/org/apache/catalina/webresources/CachedResource.java (working copy) >@@ -264,7 +264,7 @@ > > @Override > public InputStream getInputStream() { >- byte[] content = cachedContent; >+ byte[] content = getContent(); > if (content == null) { > // Can't cache InputStreams > return webResource.getInputStream(); >Index: trunk/java/org/apache/catalina/webresources/CachedResource.java >=================================================================== >--- trunk/java/org/apache/catalina/webresources/CachedResource.java (revision 1761338) >+++ trunk/java/org/apache/catalina/webresources/CachedResource.java (working copy) >@@ -264,7 +264,7 @@ > > @Override > public InputStream getInputStream() { >- byte[] content = cachedContent; >+ byte[] content = getContent(); > if (content == null) { > // Can't cache InputStreams > return webResource.getInputStream();
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 60146
: 34262