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/master
Commit: 1a02de62bfe1a0f9ef9cac442bb5cd876668f2e9
Parents: 301b8be
Author: scnakandala <[email protected]>
Authored: Wed Mar 23 14:37:02 2016 -0400
Committer: scnakandala <[email protected]>
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);

Reply via email to