mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
volume-upload: Unable to download template which has been uploaded via POST URL
During upload, POST url is saved in template_store_ref DB table. Now during download, same url is incorrectly returned back. Fixed the code to cleanup POST url from DB on successful template upload.
This commit is contained in:
parent
1dae3a4a13
commit
47a22e0594
@ -349,6 +349,7 @@ public class ImageStoreUploadMonitorImpl extends ManagerBase implements ImageSto
|
||||
tmpTemplateDataStore.setPhysicalSize(answer.getPhysicalSize());
|
||||
tmpTemplateDataStore.setSize(answer.getVirtualSize());
|
||||
tmpTemplateDataStore.setDownloadPercent(100);
|
||||
tmpTemplateDataStore.setExtractUrl(null);
|
||||
|
||||
VMTemplateVO templateUpdate = _templateDao.createForUpdate();
|
||||
templateUpdate.setSize(answer.getVirtualSize());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user