diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java index 938f76d..74fa6d8 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java @@ -1882,6 +1882,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements throws TDGWTServiceException { if (exportSession.getDestination().getId().compareTo("Workspace") == 0) { FilesStorage storage = new FilesStorage(); + logger.debug("Create Item On Workspace: [ uri: "+exportMetadata.getUri()+ + " ,user: "+user+ + " ,fileName: "+exportSession.getFileName()+ + " ,fileDescription: "+exportSession.getFileDescription()+ + " ,mimetype: text/csv"+ + " ,folder: "+exportSession.getItemId()+"]"); storage.createItemOnWorkspace(exportMetadata.getUri(), user, exportSession.getFileName(), exportSession.getFileDescription(), "text/csv", 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 f12a467..ab0aa16 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 @@ -223,6 +223,14 @@ public class FilesStorage { URLConnection uc = null; uc = (URLConnection) smsHome.openConnection(); is = uc.getInputStream(); + + logger.debug("ws.createExternalFile [name: "+item_name + + " ,description: "+ item_description + + " ,mimetype:" + item_mimetype + + " ,is:" +is + + " ,folder:" +item_folder + + " ]"); + Workspace ws = HomeLibrary .getHomeManagerFactory() .getHomeManager()