You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2022/05/07 02:44:56 UTC
[airavata-mft] branch master updated: Fixing the bug of hard coded swift streaming file issue
This is an automated email from the ASF dual-hosted git repository.
dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-mft.git
The following commit(s) were added to refs/heads/master by this push:
new 9033376 Fixing the bug of hard coded swift streaming file issue
9033376 is described below
commit 9033376277104c8f312f5dd2f06ba1a2d24f07f2
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Fri May 6 22:44:47 2022 -0400
Fixing the bug of hard coded swift streaming file issue
---
.../apache/airavata/mft/transport/swift/SwiftIncomingConnector.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/transport/swift-transport/src/main/java/org/apache/airavata/mft/transport/swift/SwiftIncomingConnector.java b/transport/swift-transport/src/main/java/org/apache/airavata/mft/transport/swift/SwiftIncomingConnector.java
index 1e3a6bf..47efd38 100644
--- a/transport/swift-transport/src/main/java/org/apache/airavata/mft/transport/swift/SwiftIncomingConnector.java
+++ b/transport/swift-transport/src/main/java/org/apache/airavata/mft/transport/swift/SwiftIncomingConnector.java
@@ -126,14 +126,14 @@ public class SwiftIncomingConnector implements IncomingChunkedConnector {
InputStream inputStream = swiftObject.getPayload().openStream();
- File targetFile = new File("/tmp/targetFile.tmp");
+ File targetFile = new File(downloadFile);
java.nio.file.Files.copy(
inputStream,
targetFile.toPath(),
StandardCopyOption.REPLACE_EXISTING);
- IOUtils.closeQuietly(inputStream);
+ inputStream.close();
}
@Override