From 2136c495a3a562f42d983c56025eb943213ca7e6 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 2 Mar 2017 16:38:24 +0000 Subject: [PATCH] Fixed PortalContext rule git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@144545 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../org/gcube/portlets/user/td/client/rstudio/RStudio.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/td/client/rstudio/RStudio.java b/src/main/java/org/gcube/portlets/user/td/client/rstudio/RStudio.java index 35c4e01..8972c0c 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/rstudio/RStudio.java +++ b/src/main/java/org/gcube/portlets/user/td/client/rstudio/RStudio.java @@ -1,6 +1,8 @@ package org.gcube.portlets.user.td.client.rstudio; +import org.gcube.portal.clientcontext.client.GCubeClientContext; import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync; +import org.gcube.portlets.user.td.gwtservice.shared.Constants; import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException; import org.gcube.portlets.user.td.gwtservice.shared.user.UserInfo; import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent; @@ -38,7 +40,9 @@ public class RStudio { Log.debug("Request: " + trId); String url = GWT.getModuleBaseURL() + "TDRStudioServlet?" - + TAB_RESOURCE_ID_PARAMETER + "=" + trId.getId(); + + TAB_RESOURCE_ID_PARAMETER + "=" + trId.getId() + "&" + + Constants.CURR_GROUP_ID + "=" + + GCubeClientContext.getCurrentContextId(); Log.debug("Server URL: " + url); Window.open(url, "RStudio", "");