This commit is contained in:
Lucio Lelii 2018-11-16 13:31:36 +00:00
parent 05be68b220
commit f6f90ff0d4
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ public class ItemsManager {
//TODO: copy on storage and modify content
if (item instanceof AbstractFileItem) {
String oldStorageId = ((AbstractFileItem)item).getContent().getStorageId();
String newStorageID = Utils.getStorageClient(login).getClient().copyFile().from(oldStorageId).to(newPath);
String newStorageID = Utils.getStorageClient(login).getClient().copyFile(true).from(oldStorageId).to(newPath);
log.info("copying storage Id {} to newPath {} and the id returned by storage is {}", oldStorageId, newPath, newStorageID);
((AbstractFileItem) item).getContent().setStorageId(newStorageID);
((AbstractFileItem) item).getContent().setRemotePath(newPath);