From 063db21917b4828d95b13d80b9b46043ca74ce55 Mon Sep 17 00:00:00 2001 From: Lucio Lelii Date: Tue, 13 Dec 2016 10:39:19 +0000 Subject: [PATCH] bug fixed on filtering git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/branches/information-system/ic-client/1.0@139962 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 2 +- .../java/org/gcube/resources/discovery/icclient/Helper.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 60433df..ff80db8 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ org.gcube.resources.discovery ic-client - 1.0.1-SNAPSHOT + 1.0.2-SNAPSHOT Information Collector Client Client API for the Information Collector service diff --git a/src/main/java/org/gcube/resources/discovery/icclient/Helper.java b/src/main/java/org/gcube/resources/discovery/icclient/Helper.java index 60d3b55..b3ea262 100644 --- a/src/main/java/org/gcube/resources/discovery/icclient/Helper.java +++ b/src/main/java/org/gcube/resources/discovery/icclient/Helper.java @@ -44,8 +44,8 @@ public class Helper { String forPropertiesString="\n *VAR* in *COLLECTION*/Data \n"; ///child::*[local-name()='Scope'] String forString=" *VAR* in *COLLECTION*/Scopes \n"; - String authString=" (contains(*VAR*/child::*[local-name()='Scope'],'"+scope+"') or contains(*VAR*/child::*[local-name()='Scope'],'"+scope.substring(0,scope.lastIndexOf("/"))+"')) "; - String authStringNormal=" contains(*VAR*//Scope,'"+scope+"') "; + String authString=" (*VAR*/child::*[local-name()='Scope']/text() eq '"+scope+"' or *VAR*/child::*[local-name()='Scope']/text() eq '"+scope.substring(0,scope.lastIndexOf("/"))+"') "; + String authStringNormal=" (*VAR*//Scope/text() eq '"+scope+"') "; String queryFiltered; List collInsert= new ArrayList();