From 553232a8413666eeffad90a99c14df10597dd3cf Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 30 Oct 2020 21:05:56 +0100 Subject: [PATCH] Fixed path parameters on AddToContext and RemoveFromContexts --- .../publisher/ResourceRegistryPublisherImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/ResourceRegistryPublisherImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/ResourceRegistryPublisherImpl.java index d4bdbfd..2e3c188 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/ResourceRegistryPublisherImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/ResourceRegistryPublisherImpl.java @@ -570,10 +570,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher GXHTTPStringRequest gxHTTPStringRequest = GXHTTPStringRequest.newRequest(address); gxHTTPStringRequest.from(ResourceRegistryPublisher.class.getSimpleName()); gxHTTPStringRequest.path(SharingPath.SHARING_PATH_PART); - gxHTTPStringRequest.path(SharingPath.CONTEXTS_PATH_PART); - gxHTTPStringRequest.path(contextUUID.toString()); gxHTTPStringRequest.path(identifiableElementTypeName); gxHTTPStringRequest.path(instanceUUID.toString()); + gxHTTPStringRequest.path(SharingPath.CONTEXTS_PATH_PART); + gxHTTPStringRequest.path(contextUUID.toString()); HttpURLConnection httpURLConnection = gxHTTPStringRequest.put(); boolean added = HTTPUtility.getResponse(Boolean.class, httpURLConnection); @@ -629,10 +629,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher GXHTTPStringRequest gxHTTPStringRequest = GXHTTPStringRequest.newRequest(address); gxHTTPStringRequest.from(ResourceRegistryPublisher.class.getSimpleName()); gxHTTPStringRequest.path(SharingPath.SHARING_PATH_PART); - gxHTTPStringRequest.path(SharingPath.CONTEXTS_PATH_PART); - gxHTTPStringRequest.path(contextUUID.toString()); gxHTTPStringRequest.path(identifiableElementTypeName); gxHTTPStringRequest.path(instanceUUID.toString()); + gxHTTPStringRequest.path(SharingPath.CONTEXTS_PATH_PART); + gxHTTPStringRequest.path(contextUUID.toString()); HttpURLConnection httpURLConnection = gxHTTPStringRequest.delete(); boolean removed = HTTPUtility.getResponse(Boolean.class, httpURLConnection);