ASF Bugzilla – Attachment 34077 Details for
Bug 59859
Tomcat WebDAV MOVE operation fails on Windows
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
FIS.close() patch
asfbz-59859.patch (text/plain), 1.46 KB, created by
Coty Sutherland
on 2016-07-28 18:19:28 UTC
(
hide
)
Description:
FIS.close() patch
Filename:
MIME Type:
Creator:
Coty Sutherland
Created:
2016-07-28 18:19:28 UTC
Size:
1.46 KB
patch
obsolete
>Index: java/org/apache/catalina/servlets/WebdavServlet.java >=================================================================== >--- java/org/apache/catalina/servlets/WebdavServlet.java (revision 1754440) >+++ java/org/apache/catalina/servlets/WebdavServlet.java (working copy) >@@ -28,6 +28,7 @@ > import java.util.Stack; > import java.util.TimeZone; > import java.util.Vector; >+import java.io.InputStream; > > import javax.servlet.RequestDispatcher; > import javax.servlet.ServletContext; >@@ -1633,7 +1634,8 @@ > * @param dest Destination path > */ > private boolean copyResource(Hashtable<String,Integer> errorList, >- String source, String dest) { >+ String source, String dest) >+ throws IOException { > > if (debug > 1) > log("Copy: " + source + " To: " + dest); >@@ -1676,12 +1678,13 @@ > } > } > } >- if (!resources.write(dest, sourceResource.getInputStream(), >- false)) { >+ InputStream sourceInputStream = sourceResource.getInputStream(); >+ if (!resources.write(dest, sourceInputStream, false)) { > errorList.put(source, > Integer.valueOf(WebdavStatus.SC_INTERNAL_SERVER_ERROR)); > return false; > } >+ sourceInputStream.close(); > } else { > errorList.put(source, > Integer.valueOf(WebdavStatus.SC_INTERNAL_SERVER_ERROR));
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 59859
:
34040
|
34077
|
34078