ref 12977: SAI - Force the path of the project folder to be updated to a new format
https://support.d4science.org/issues/12977 Now, when the project is open the path is forced to be updated git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@174673 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
23d14db7f1
commit
da5f6dd7ef
|
@ -356,7 +356,10 @@ public class StatAlgoImporterServiceImpl extends RemoteServiceServlet implements
|
|||
ProjectSupportBlackBox projectSupportBlackBox = (ProjectSupportBlackBox) project
|
||||
.getProjectConfig().getProjectSupport();
|
||||
FilesStorage filesStorage = new FilesStorage();
|
||||
String pLink = filesStorage.getPublicLink(serviceCredentials.getUserName(), itemDescription.getId());
|
||||
itemDescription = filesStorage.getFileInfoOnWorkspace(
|
||||
serviceCredentials.getUserName(), itemDescription.getId());
|
||||
String pLink = filesStorage.getPublicLink(serviceCredentials.getUserName(),
|
||||
itemDescription.getId());
|
||||
itemDescription.setPublicLink(pLink);
|
||||
projectSupportBlackBox.setBinaryItem(itemDescription);
|
||||
SessionUtil.setProjectSession(httpRequest, serviceCredentials, project);
|
||||
|
@ -366,8 +369,11 @@ public class StatAlgoImporterServiceImpl extends RemoteServiceServlet implements
|
|||
ProjectSupportBashEdit projectSupportBashEdit = (ProjectSupportBashEdit) project
|
||||
.getProjectConfig().getProjectSupport();
|
||||
FilesStorage filesStorage = new FilesStorage();
|
||||
String link = filesStorage.getPublicLink(serviceCredentials.getUserName(), itemDescription.getId());
|
||||
itemDescription.setPublicLink(link);
|
||||
itemDescription = filesStorage.getFileInfoOnWorkspace(
|
||||
serviceCredentials.getUserName(), itemDescription.getId());
|
||||
String pLink = filesStorage.getPublicLink(serviceCredentials.getUserName(),
|
||||
itemDescription.getId());
|
||||
itemDescription.setPublicLink(pLink);
|
||||
projectSupportBashEdit.setBinaryItem(itemDescription);
|
||||
SessionUtil.setProjectSession(httpRequest, serviceCredentials, project);
|
||||
logger.debug("Project: " + project);
|
||||
|
|
Loading…
Reference in New Issue