From d33bbbca7cc544057d7db355042c76d13537b915 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 3 Feb 2017 17:32:11 +0000 Subject: [PATCH] Fixed bug on rr clients git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@142213 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../publisher/proxy/ResourceRegistryPublisherImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java index e55aab5..ec88120 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java @@ -279,7 +279,13 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher String res = result.toString(); logger.trace("Server returned content : {}", res); - return (C) ISMapper.unmarshal((Class) clazz, res); + if(Boolean.class.isAssignableFrom(clazz)){ + return (C) ((Boolean) Boolean.getBoolean(res)) ; + }else if(ISManageable.class.isAssignableFrom(clazz)){ + return (C) ISMapper.unmarshal((Class) clazz, res); + } + + return (C) res; } }