airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: adding host name to replica path
Date Wed, 23 Mar 2016 18:37:06 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 301b8be45 -> 1a02de62b


adding host name to replica 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/1a02de62
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/1a02de62
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/1a02de62

Branch: refs/heads/develop
Commit: 1a02de62bfe1a0f9ef9cac442bb5cd876668f2e9
Parents: 301b8be
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Wed Mar 23 14:37:02 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Wed Mar 23 14:37:02 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/1a02de62/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 3382341..fd33150 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -316,7 +316,8 @@ class ExperimentUtilities
                 $dataReplicationModel->replicaName = basename($filePath) . "-gateway-datastore-copy";
                 $dataReplicationModel->replicaLocationCategory = ReplicaLocationCategory::GATEWAY_DATA_STORE;
                 $dataReplicationModel->replicaPersistentType = ReplicaPersistentType::TRANSIENT;
-                $dataReplicationModel->filePath = $filePath;
+                $hostName = $_SERVER['SERVER_NAME'];
+                $dataReplicationModel->filePath = "file://" . $hostName . $filePath;
 
                 $dataProductModel->replicaLocations[] = $dataReplicationModel;
                 $uri = Airavata::registerDataProduct(Session::get('authz-token'), $dataProductModel);


Mime
View raw message