[airavata-mft] branch develop updated: Removing special characters in SCP paths

2022-02-11 Thread dimuthuupe
This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-mft.git


The following commit(s) were added to refs/heads/develop by this push:
 new 479b292  Removing special characters in SCP paths
479b292 is described below

commit 479b292a9bcd73bb76e6991bfa69ba09738cdc45
Author: Dimuthu Wannipurage 
AuthorDate: Fri Feb 11 14:57:55 2022 -0500

Removing special characters in SCP paths
---
 .../mft/transport/scp/SCPIncomingConnector.java|   8 +-
 .../mft/transport/scp/SCPOutgoingConnector.java|   8 +-
 .../airavata/mft/transport/scp/SCPReceiver.java| 284 -
 .../airavata/mft/transport/scp/SCPSender.java  | 279 
 4 files changed, 12 insertions(+), 567 deletions(-)

diff --git 
a/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPIncomingConnector.java
 
b/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPIncomingConnector.java
index 7856a3a..9cbb590 100644
--- 
a/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPIncomingConnector.java
+++ 
b/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPIncomingConnector.java
@@ -92,6 +92,10 @@ public final class SCPIncomingConnector implements 
IncomingConnector {
 }
 }
 
+private String escapeSpecialChars(String path) {
+return  path.replace(" ", "\\ ");
+}
+
 @Override
 public InputStream fetchInputStream() throws Exception {
 String resourcePath = null;
@@ -105,7 +109,7 @@ public final class SCPIncomingConnector implements 
IncomingConnector {
 throw new Exception("Resource was not set in resource with id 
" + resource.getResourceId());
 }
 
-return fetchInputStreamJCraft(resourcePath);
+return fetchInputStreamJCraft(escapeSpecialChars(resourcePath));
 }
 
 @Override
@@ -126,7 +130,7 @@ public final class SCPIncomingConnector implements 
IncomingConnector {
 throw new Exception("Resource was not set in resource with id 
" + resource.getResourceId());
 }
 
-return fetchInputStreamJCraft(resourcePath);
+return fetchInputStreamJCraft(escapeSpecialChars(resourcePath));
 }
 
 private InputStream fetchInputStreamJCraft(String resourcePath) throws 
Exception{
diff --git 
a/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPOutgoingConnector.java
 
b/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPOutgoingConnector.java
index 4df4649..980019b 100644
--- 
a/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPOutgoingConnector.java
+++ 
b/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPOutgoingConnector.java
@@ -95,6 +95,10 @@ public final class SCPOutgoingConnector implements 
OutgoingConnector {
 }
 }
 
+private String escapeSpecialChars(String path) {
+return  path.replace(" ", "\\ ");
+}
+
 @Override
 public OutputStream fetchOutputStream() throws Exception {
 String resourcePath = null;
@@ -108,7 +112,7 @@ public final class SCPOutgoingConnector implements 
OutgoingConnector {
 throw new Exception("Resource was not set in resource with id 
" + resource.getResourceId());
 }
 
-return fetchOutputStreamJCraft(resourcePath, 
cc.getMetadata().getResourceSize());
+return fetchOutputStreamJCraft(escapeSpecialChars(resourcePath), 
cc.getMetadata().getResourceSize());
 }
 
 @Override
@@ -128,7 +132,7 @@ public final class SCPOutgoingConnector implements 
OutgoingConnector {
 throw new Exception("Resource was not set in resource with id 
" + resource.getResourceId());
 }
 
-return fetchOutputStreamJCraft(resourcePath, 
cc.getMetadata().getResourceSize());
+return fetchOutputStreamJCraft(escapeSpecialChars(resourcePath), 
cc.getMetadata().getResourceSize());
 }
 
 public OutputStream fetchOutputStreamJCraft(String resourcePath, long 
fileSize) throws Exception {
diff --git 
a/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPReceiver.java
 
b/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPReceiver.java
deleted file mode 100644
index b70aa34..000
--- 
a/transport/scp-transport/src/main/java/org/apache/airavata/mft/transport/scp/SCPReceiver.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the 

Error while running github feature from .asf.yaml in airavata-data-lake!

2022-02-11 Thread Apache Infrastructure


An error occurred while running github feature in .asf.yaml!:
.asf.yaml: Invalid GitHub label 'MFT' - must be lowercase alphanumerical and <= 
35 characters!


[airavata-data-lake] branch master updated: enabling issues

2022-02-11 Thread smarru
This is an automated email from the ASF dual-hosted git repository.

smarru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-data-lake.git


The following commit(s) were added to refs/heads/master by this push:
 new e60e426  enabling issues
e60e426 is described below

commit e60e4267a0c2099c151d95314d3a3a8c5faa7e74
Author: Suresh Marru 
AuthorDate: Fri Feb 11 12:46:22 2022 -0500

enabling issues
---
 .asf.yaml | 41 +
 1 file changed, 41 insertions(+)

diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 000..a72ed27
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,41 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+notifications:
+  commits:  commits@airavata.apache.org
+  # Send all issue emails (new, closed, comments) to issues@
+  issues:   iss...@airavata.apache.org
+  # Send new/closed PR notifications to dev@
+  pullrequests_status:  iss...@airavata.apache.org
+  # Send individual PR comments/reviews to issues@
+  pullrequests_comment: iss...@airavata.apache.org
+
+github:
+  description: "Apache Airavata Data Lake"
+  homepage: https://airavata.apache.org/
+  labels:
+- airavata
+- apache
+- data
+- lake
+- MFT
+
+  features:
+wiki: true
+issues: true
+projects: true