ref 11720: DataMiner - Update to StorageHUB

https://support.d4science.org/issues/11720

Updated to StorageHub 

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/data-miner-manager-widget@171903 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2018-10-03 17:57:56 +00:00
parent 3716231d20
commit 4696cf1510
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ public class DownloadServlet extends HttpServlet {
ServiceCredentials serviceCredentials = SessionUtil.getServiceCredentials(req, scopeGroupId);
StorageUtil filesStorage = new StorageUtil();
ItemDownload itemDownload = filesStorage.getItemDownload(serviceCredentials.getUserName(), itemId);
logger.debug("ItemDownload: "+itemDownload);
if (itemDownload == null) {
logger.error("This type of item does not support download operation");
throw new ServletException("This type of item does not support download operation");