diff --git a/data-resource-management-service/drms-rdbms-impl/drms-server/src/main/java/org/apache/airavata/drms/api/handlers/ResourceServiceHandler.java b/data-resource-management-service/drms-rdbms-impl/drms-server/src/main/java/org/apache/airavata/drms/api/handlers/ResourceServiceHandler.java index 89e6c2f4..c0a7f60f 100644 --- a/data-resource-management-service/drms-rdbms-impl/drms-server/src/main/java/org/apache/airavata/drms/api/handlers/ResourceServiceHandler.java +++ b/data-resource-management-service/drms-rdbms-impl/drms-server/src/main/java/org/apache/airavata/drms/api/handlers/ResourceServiceHandler.java @@ -287,7 +287,7 @@ public void searchResource(ResourceSearchRequest if(searchQuery.getField().equalsIgnoreCase("sharedBy")) { SearchCriteria searchCriteria = SearchCriteria.newBuilder() .setSearchField(EntitySearchField.SHARED_BY) - .setCondition(SearchCondition.valueOf(searchQuery.getOptions())) + .setCondition(SearchCondition.EQUAL) .setValue(searchQuery.getValue()).build(); searchRequestBuilder = searchRequestBuilder.addSearchCriteria(searchCriteria);