You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/03/23 22:20:55 UTC
airavata-php-gateway git commit: adding colon to file path
Repository: airavata-php-gateway
Updated Branches:
refs/heads/develop 167dee4b2 -> 93aa91ee6
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/develop
Commit: 93aa91ee6f5512bc12bb5bd5a34a946b0c8b95e5
Parents: 167dee4
Author: scnakandala <su...@gmail.com>
Authored: Wed Mar 23 17:20:53 2016 -0400
Committer: scnakandala <su...@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);