From 3d61223be31ad87f8160fbd5523d2016c7c874a1 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Fri, 25 Oct 2024 17:36:06 +0200 Subject: [PATCH] ready to release --- pom.xml | 4 ++-- .../org/gcube/portlets/user/vremanagement/RequestVRE.java | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index e221db9..04f2816 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ sbd-uploadshare-portlet war SBD-UploadAndSharePortlets Portlet - 1.3.0-SNAPSHOT + 1.3.0 Upload Dataset And Share Idea Portlets @@ -37,7 +37,7 @@ org.gcube.distribution maven-portal-bom - 4.0.0-SNAPSHOT + 4.0.0 pom import diff --git a/src/main/java/org/gcube/portlets/user/vremanagement/RequestVRE.java b/src/main/java/org/gcube/portlets/user/vremanagement/RequestVRE.java index 006615c..ad7a0cc 100644 --- a/src/main/java/org/gcube/portlets/user/vremanagement/RequestVRE.java +++ b/src/main/java/org/gcube/portlets/user/vremanagement/RequestVRE.java @@ -288,11 +288,12 @@ public class RequestVRE extends MVCPortlet { body += getPublicLinksForAttachs(workspace, attachmentsList); } catch (Exception e) { _log.error("Ops, could not generate publick link for some of the attachments"); + e.printStackTrace(); } MessageManagerClient client = AbstractPlugin.messages().build(); String messageId = client.sendMessage(recipientIds, subject, body, attachmentsList); - _log.info("Sending new VRE Request message notification to: " + recipientIds.toString()); + _log.debug("Sending new VRE Request message notification to: " + recipientIds.toString()); NotificationsManager nm = new ApplicationNotificationsManager(new SocialNetworkingSite(request), context, new SocialNetworkingUser(currentUser.getScreenName(), currentUser.getEmailAddress(), currentUser.getFullName(), "")); @@ -313,7 +314,8 @@ public class RequestVRE extends MVCPortlet { */ private String getPublicLinksForAttachs(Workspace workspace, List listAttachmentsId) throws ItemNotFoundException, InternalErrorException { - + + _log.debug("Generating public link for attachments: " + listAttachmentsId.toString()); if (listAttachmentsId != null && (!listAttachmentsId.isEmpty())) { List attachments = new ArrayList(); for (String itemId : listAttachmentsId) { @@ -321,7 +323,7 @@ public class RequestVRE extends MVCPortlet { attachments.add(workspace.getItem(itemId)); } catch (Exception e) { _log.error( - "getPublicLinksForAttachs FAILED while trying workspace.getItem id=" + itemId); + "in getPublicLinksForAttachs FAILED while trying workspace.getItem id=" + itemId); e.printStackTrace(); } }