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)));%>