diff --git a/src/main/java/org/gcube/data/access/storagehub/services/ItemsManager.java b/src/main/java/org/gcube/data/access/storagehub/services/ItemsManager.java index 1a39521..cfab452 100644 --- a/src/main/java/org/gcube/data/access/storagehub/services/ItemsManager.java +++ b/src/main/java/org/gcube/data/access/storagehub/services/ItemsManager.java @@ -404,7 +404,7 @@ public class ItemsManager extends Impersonable{ return downloadHandler.downloadVersionedItem(ses, currentUser, (AbstractFileItem) versionedItem, publicLink.getVersion(), true); default: Item currentItem = node2Item.getItem(publicLink.getId(), ses, Excludes.GET_ONLY_CONTENT); - return downloadHandler.downloadVersionedItem(ses, currentUser, (AbstractFileItem) currentItem, publicLink.getVersion(), true); + return downloadHandler.downloadFileItem(ses,(AbstractFileItem) currentItem, currentUser, true); } }catch(RepositoryException re ){