airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject git commit: fixing AIRAVATA-1280
Date Tue, 27 May 2014 17:13:35 GMT
Repository: airavata
Updated Branches:
  refs/heads/master d91846803 -> 36a0b8c20


fixing AIRAVATA-1280


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

Branch: refs/heads/master
Commit: 36a0b8c2094956570cbdc527edb0e4e68b5ffb64
Parents: d918468
Author: Chathuri Wimalasena <kamalasini@gmail.com>
Authored: Tue May 27 13:13:31 2014 -0400
Committer: Chathuri Wimalasena <kamalasini@gmail.com>
Committed: Tue May 27 13:13:31 2014 -0400

----------------------------------------------------------------------
 .../persistance/registry/jpa/resources/WorkerResource.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/36a0b8c2/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
----------------------------------------------------------------------
diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
index c5e5c45..43e241c 100644
--- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
+++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
@@ -507,7 +507,11 @@ public class WorkerResource extends AbstractResource {
         String query = "SELECT e from Experiment e WHERE ";
         if (filters != null && filters.size() != 0) {
             for (String field : filters.keySet()){
-                query += "e." + field + " LIKE '%" + filters.get(field) + "%' AND " ;
+                if (field.equals(ExperimentConstants.EXECUTION_USER)){
+                    query += "e." + field + "= '" + filters.get(field) + "' AND " ;
+                }else {
+                    query += "e." + field + " LIKE '%" + filters.get(field) + "%' AND " ;
+                }
             }
         }
         query = query.substring(0, query.length() - 5);


Mime
View raw message