git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@174016 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e2e9c4e6bc
commit
71d3dc113f
|
@ -656,6 +656,7 @@ public class ItemsManager {
|
|||
if (item instanceof AbstractFileItem) {
|
||||
String newStorageID = Utils.getStorageClient(login).getClient().copyFile().from(((AbstractFileItem)item).getContent().getStorageId()).to(newPath);
|
||||
((AbstractFileItem) item).getContent().setStorageId(newStorageID);
|
||||
((AbstractFileItem) item).getContent().setRemotePath(newPath);
|
||||
item2Node.replaceContent(ses, newNode, (AbstractFileItem) item, ItemAction.CLONED);
|
||||
} else
|
||||
Utils.setPropertyOnChangeNode(newNode, login, ItemAction.CLONED);
|
||||
|
|
Loading…
Reference in New Issue