airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [2/2] airavata git commit: fixing missing /
Date Thu, 24 Mar 2016 15:47:50 GMT
fixing missing /


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

Branch: refs/heads/develop
Commit: b2740e74dee0634662c06895943d7447da9fbda8
Parents: cf8dc28
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Thu Mar 24 11:47:45 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Thu Mar 24 11:47:45 2016 -0400

----------------------------------------------------------------------
 .../registry/core/replica/catalog/impl/ReplicaCatalogImpl.java      | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/b2740e74/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/replica/catalog/impl/ReplicaCatalogImpl.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/replica/catalog/impl/ReplicaCatalogImpl.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/replica/catalog/impl/ReplicaCatalogImpl.java
index 2da6724..6a9a4fd 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/replica/catalog/impl/ReplicaCatalogImpl.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/replica/catalog/impl/ReplicaCatalogImpl.java
@@ -73,6 +73,7 @@ public class ReplicaCatalogImpl implements ReplicaCatalog {
             String dir = bits[i];
             if(!isExists(parentUri + dir)){
                 tempDp = new DataProductModel();
+                if(!parentUri.endsWith("/")) parentUri += "/";
                 try {
                     tempDp.setLogicalPath((new URI(parentUri + dir)).getPath());
                 } catch (URISyntaxException e) {


Mime
View raw message