diff --git a/src/main/java/org/gcube/gcat/workspace/CatalogueStorageHubManagement.java b/src/main/java/org/gcube/gcat/workspace/CatalogueStorageHubManagement.java index b2f472c..8ecca28 100644 --- a/src/main/java/org/gcube/gcat/workspace/CatalogueStorageHubManagement.java +++ b/src/main/java/org/gcube/gcat/workspace/CatalogueStorageHubManagement.java @@ -96,6 +96,11 @@ public class CatalogueStorageHubManagement { fileContainer = storageHubManagement.getPersistedFile(); fileItem = fileContainer.get(); }catch (Exception e) { + // This is a workaround because storage-hub invalidate the item + // when I rename it (just before this operation) + // then I get java.lang.RuntimeException: javax.ws.rs.ProcessingException: Error reading entity from input stream. + // invoking fileContainer.get() + // see issue #25373 fileContainer = storageHubManagement.getPersistedFile(resourceID, mimeType); fileItem = fileContainer.get(); }