ref 11724: SAI - Update to StorageHUB

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

Updated to StorageHub 

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@171663 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2018-09-25 09:56:07 +00:00
parent 5707c80e41
commit a23c56395b
1 changed files with 4 additions and 4 deletions

View File

@ -814,22 +814,22 @@ public class FilesStorage {
Metadata metadata = sharedFolder.getUsers();
shared = new ArrayList<>(metadata.getValues().keySet());
} else {
logger.error("The folder is shared but is not of type SharedFolder: itemId=" + itemId + "]");
logger.error("The folder is shared but is not of type SharedFolder: [itemId=" + itemId + "]");
if (folderItem.getOwner() != null && !folderItem.getOwner().isEmpty()) {
shared.add(folderItem.getOwner());
} else {
logger.error("Invalid owner for: itemId=" + itemId + "]");
logger.error("Invalid owner for: [itemId=" + itemId + "]");
}
}
} else {
if (folderItem.getOwner() != null && !folderItem.getOwner().isEmpty()) {
shared.add(folderItem.getOwner());
} else {
logger.error("Invalid owner for: itemId=" + itemId + "]");
logger.error("Invalid owner for: [itemId=" + itemId + "]");
}
}
} else {
logger.debug("Folder null: itemId=" + itemId + "]");
logger.debug("Folder null: [itemId=" + itemId + "]");
}
logger.debug("Shared: " + shared);