Added comment on workaround
This commit is contained in:
parent
d5137f8a82
commit
3bd109e993
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue