Lines 17-22
Link Here
|
17 |
package org.apache.catalina.servlets; |
17 |
package org.apache.catalina.servlets; |
18 |
|
18 |
|
19 |
import java.io.IOException; |
19 |
import java.io.IOException; |
|
|
20 |
import java.io.InputStream; |
20 |
import java.io.StringReader; |
21 |
import java.io.StringReader; |
21 |
import java.io.StringWriter; |
22 |
import java.io.StringWriter; |
22 |
import java.io.Writer; |
23 |
import java.io.Writer; |
Lines 1709-1719
public class WebdavServlet
Link Here
|
1709 |
} |
1710 |
} |
1710 |
} |
1711 |
} |
1711 |
} |
1712 |
} |
1712 |
if (!resources.write(dest, sourceResource.getInputStream(), |
1713 |
try (InputStream is = sourceResource.getInputStream()) { |
1713 |
false)) { |
1714 |
if (!resources.write(dest, is, |
1714 |
errorList.put(source, |
1715 |
false)) { |
1715 |
Integer.valueOf(WebdavStatus.SC_INTERNAL_SERVER_ERROR)); |
1716 |
errorList.put(source, |
1716 |
return false; |
1717 |
Integer.valueOf(WebdavStatus.SC_INTERNAL_SERVER_ERROR)); |
|
|
1718 |
return false; |
1719 |
} |
1720 |
} catch (IOException e) { |
1721 |
log(sm.getString("webdavservlet.inputstreamclosefail", source), e); |
1717 |
} |
1722 |
} |
1718 |
} else { |
1723 |
} else { |
1719 |
errorList.put(source, |
1724 |
errorList.put(source, |