From d22dddbdaf78624a66be8890b2a9ced48a9115c8 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 14 Sep 2018 14:35:26 +0000 Subject: [PATCH] ref #11879: TDM - Update to StorageHUB https://support.d4science.org/issues/#11879 Updated to StorageHub git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@171472 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/gwtservice/server/storage/FilesStorage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/storage/FilesStorage.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/storage/FilesStorage.java index 025a1c3..4ccc8ce 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/storage/FilesStorage.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/storage/FilesStorage.java @@ -45,7 +45,7 @@ public class FilesStorage { String remotePath = "/CSVimport/" + file.getName(); logger.debug("remotePath: " + remotePath); String id = client.put(true).LFile(file.getAbsolutePath()).RFile(remotePath); - client.close(); + //client.close(); return id; @@ -70,7 +70,7 @@ public class FilesStorage { String remotePath = "/CodelistMappingImport/" + file.getName(); logger.debug("remotePath: " + remotePath); String id = client.put(true).LFile(file.getAbsolutePath()).RFile(remotePath); - client.close(); + //client.close(); return id; } catch (Throwable e) { logger.error("Error no codelist mapping file loaded on storage" + e.getLocalizedMessage()); @@ -100,7 +100,7 @@ public class FilesStorage { String remotePath = "/CodelistMappingImport/" + address.getFile(); logger.debug("remotePath: " + remotePath); id = client.put(true).LFile(is).RFile(remotePath); - client.close(); + //client.close(); } return id; @@ -256,7 +256,7 @@ public class FilesStorage { AbstractFileItem afi = fileContainer.get(); logger.debug("Created file on workspace: " + afi.getId()); } - client.close(); + //client.close(); } catch (Throwable e) { logger.error("Error creating item on workspace: " + e.getLocalizedMessage(), e);