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:
Koushik Das 2015-03-11 17:55:04 +05:30
parent 1dae3a4a13
commit 47a22e0594

View File

@ -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());