Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop f6da03902 -> e3b15b566


adding user name to logical path too


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/e3b15b56
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/e3b15b56
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/e3b15b56

Branch: refs/heads/develop
Commit: e3b15b566d938c0b1446744fd2c6f7084db5fbe8
Parents: f6da039
Author: scnakandala <[email protected]>
Authored: Wed Mar 23 18:20:55 2016 -0400
Committer: scnakandala <[email protected]>
Committed: Wed Mar 23 18:20:55 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/e3b15b56/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php 
b/app/libraries/ExperimentUtilities.php
index 6f3e082..92452e3 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -314,7 +314,7 @@ class ExperimentUtilities
                 $dataProductModel->gatewayId = 
Config::get("pga_config.airavata")["gateway-id"];
                 $dataProductModel->ownerName = Session::get("username");
                 $dataProductModel->productName = basename($filePath);
-                $logicalPath = 
str_replace(Config::get("pga_config.airavata")["experiment-data-absolute-path"] 
. "/" . Session::get('username'), "", $filePath);
+                $logicalPath = 
str_replace(Config::get("pga_config.airavata")["experiment-data-absolute-path"],
 "", $filePath);
                 $dataProductModel->logicalPath = $logicalPath;
                 $dataProductModel->dataProductType = DataProductType::FILE;
 
@@ -456,7 +456,7 @@ class ExperimentUtilities
                     $dataProductModel->gatewayId = 
Config::get("pga_config.airavata")["gateway-id"];
                     $dataProductModel->ownerName = Session::get("username");
                     $dataProductModel->productName = basename($newInputPath);
-                    $logicalPath = 
str_replace(Config::get("pga_config.airavata")["experiment-data-absolute-path"] 
. "/" . Session::get('username'), "", $newInputPath);
+                    $logicalPath = 
str_replace(Config::get("pga_config.airavata")["experiment-data-absolute-path"] 
, "", $newInputPath);
                     $dataProductModel->logicalPath = $logicalPath;
                     $dataProductModel->dataProductType = DataProductType::FILE;
 

Reply via email to