From 2d84816a047cee3672a1196014ab4b550c3e95fc Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Tue, 11 Oct 2016 10:56:26 +0000 Subject: [PATCH] changed the way th storage in instanciated, from infra to current scope git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@133048 82a268e6-3cf1-43bd-a215-b396298e98cf --- .settings/org.eclipse.wst.common.component | 3 --- pom.xml | 4 ---- .../user/shareupdates/server/ShareUpdateServiceImpl.java | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component index 167b886..0c6f3eb 100644 --- a/.settings/org.eclipse.wst.common.component +++ b/.settings/org.eclipse.wst.common.component @@ -8,9 +8,6 @@ uses - - uses - diff --git a/pom.xml b/pom.xml index 0afa64f..ad3f4df 100644 --- a/pom.xml +++ b/pom.xml @@ -72,7 +72,6 @@ org.gcube.common.portal portal-manager - [2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT) org.gcube.portal @@ -82,7 +81,6 @@ org.gcube.portal notifications-common-library - [1.3.0-SNAPSHOT, 2.0.0-SNAPSHOT) provided @@ -93,13 +91,11 @@ org.gcube.applicationsupportlayer aslsocial - [1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT) provided org.gcube.portlets.user gcube-widgets - [2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT) compile diff --git a/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java b/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java index 20a0f26..d224f13 100644 --- a/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java @@ -650,7 +650,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar String remoteFilePath = UPLOAD_DIR + "/" + randomUploadFolderName + "/" + fileName; //get the Storage Client String currScope = ScopeProvider.instance.get(); - ScopeProvider.instance.set("/"+PortalContext.getConfiguration().getInfrastructureName()); + ScopeProvider.instance.set(getASLSession().getScope()); IClient storageClient = new StorageClient(STORAGE_OWNER, AccessType.SHARED, MemoryType.PERSISTENT).getClient(); ScopeProvider.instance.set(currScope);