git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@174189 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
05be68b220
commit
f6f90ff0d4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue