Added comment on workaround

This commit is contained in:
luca.frosini 2023-07-11 12:13:33 +02:00
parent d5137f8a82
commit 3bd109e993
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}