airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [18/40] airavata-php-gateway git commit: adding colon to file path
Date Fri, 25 Mar 2016 20:49:03 GMT
adding colon to file path


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/93aa91ee
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/93aa91ee
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/93aa91ee

Branch: refs/heads/master
Commit: 93aa91ee6f5512bc12bb5bd5a34a946b0c8b95e5
Parents: 167dee4
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Wed Mar 23 17:20:53 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Wed Mar 23 17:20:53 2016 -0400

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/93aa91ee/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 2b08772..108904b 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -317,7 +317,7 @@ class ExperimentUtilities
                 $dataReplicationModel->replicaLocationCategory = ReplicaLocationCategory::GATEWAY_DATA_STORE;
                 $dataReplicationModel->replicaPersistentType = ReplicaPersistentType::TRANSIENT;
                 $hostName = $_SERVER['SERVER_NAME'];
-                $dataReplicationModel->filePath = "file://" . $hostName . $filePath;
+                $dataReplicationModel->filePath = "file://" . $hostName . ":" . $filePath;
 
                 $dataProductModel->replicaLocations[] = $dataReplicationModel;
                 $uri = Airavata::registerDataProduct(Session::get('authz-token'), $dataProductModel);
@@ -430,7 +430,6 @@ class ExperimentUtilities
 
             foreach ($experimentInputs as $experimentInput) {
                 if ($experimentInput->type == DataType::URI) {
-                    $currentInputPath = $experimentInput->value;
                     $hostPathConstant = 'file://' . $hostName . ':';
                     $dataProductModel = Airavata::getDataProduct(Session::get('authz-token'),
$experimentInput->value);
                     $currentInputPath = "";
@@ -460,7 +459,7 @@ class ExperimentUtilities
                     $dataReplicationModel->replicaLocationCategory = ReplicaLocationCategory::GATEWAY_DATA_STORE;
                     $dataReplicationModel->replicaPersistentType = ReplicaPersistentType::TRANSIENT;
                     $hostName = $_SERVER['SERVER_NAME'];
-                    $dataReplicationModel->filePath = "file://" . $hostName . $newInputPath;
+                    $dataReplicationModel->filePath = "file://" . $hostName . ":" . $newInputPath;
 
                     $dataProductModel->replicaLocations[] = $dataReplicationModel;
                     $uri = Airavata::registerDataProduct(Session::get('authz-token'), $dataProductModel);


Mime
View raw message