airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject git commit: fixing erroneous return type - AIRAVATA-1006
Date Tue, 11 Feb 2014 14:58:09 GMT
Updated Branches:
  refs/heads/master 1d0dadadf -> 9b59fb000


fixing erroneous return type - AIRAVATA-1006


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

Branch: refs/heads/master
Commit: 9b59fb0002b7f33b862a9a618198ecee2679922b
Parents: 1d0dada
Author: chathuri <chathuri@apache.org>
Authored: Tue Feb 11 09:58:04 2014 -0500
Committer: chathuri <chathuri@apache.org>
Committed: Tue Feb 11 09:58:04 2014 -0500

----------------------------------------------------------------------
 .../airavata/persistance/registry/jpa/impl/ExperimentRegistry.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/9b59fb00/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
----------------------------------------------------------------------
diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
index 5bdb42e..57422b2 100644
--- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
+++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
@@ -394,7 +394,7 @@ public class ExperimentRegistry {
             GatewayResource gateway = gatewayRegistry.getDefaultGateway();
             ExperimentMetadataResource exBasicData = (ExperimentMetadataResource) gateway.get(ResourceType.EXPERIMENT_METADATA,
expId);
             if (fieldName == null){
-                return exBasicData;
+                return ThriftDataModelConversion.getBasicMetadata(exBasicData);
             }else if (fieldName.equals(Constants.FieldConstants.BasicMetadataConstants.USER_NAME)){
                 return exBasicData.getExecutionUser();
             }else if (fieldName.equals(Constants.FieldConstants.BasicMetadataConstants.EXPERIMENT_NAME)){


Mime
View raw message