From 7541e723a4149ffa9e7a1db6a2fbd084c995f2d5 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Tue, 6 Apr 2021 11:28:05 +0200 Subject: [PATCH] none --- .../gcube/portlets/user/wswidget/StorageHubServiceUtil.java | 4 ++-- src/main/webapp/html/workspacewidget/view.jsp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/wswidget/StorageHubServiceUtil.java b/src/main/java/org/gcube/portlets/user/wswidget/StorageHubServiceUtil.java index c6650fb..45a4a82 100644 --- a/src/main/java/org/gcube/portlets/user/wswidget/StorageHubServiceUtil.java +++ b/src/main/java/org/gcube/portlets/user/wswidget/StorageHubServiceUtil.java @@ -149,9 +149,9 @@ public class StorageHubServiceUtil { * @param request * @return the VRE Folders Id */ - public static String getVREFoldersId(HttpServletRequest request) { + public static String getVREFoldersId(String groupId) { String toReturn = ""; - String currentContext = PortalContext.getConfiguration().getCurrentScope(request); + String currentContext = PortalContext.getConfiguration().getCurrentScope(groupId); _log.debug("getVREFoldersId, context="+currentContext); ScopeProvider.instance.set(currentContext); try { diff --git a/src/main/webapp/html/workspacewidget/view.jsp b/src/main/webapp/html/workspacewidget/view.jsp index ad412cd..81a3340 100644 --- a/src/main/webapp/html/workspacewidget/view.jsp +++ b/src/main/webapp/html/workspacewidget/view.jsp @@ -42,7 +42,7 @@ - <%pageContext.setAttribute("vreFoldersId", StorageHubServiceUtil.getVREFoldersId(request));%> + <%pageContext.setAttribute("vreFoldersId", StorageHubServiceUtil.getVREFoldersId(PortalUtil.getScopeGroupId(request)));%>