From a7e511c1a30c974038ebd5683f112631e5abb6da Mon Sep 17 00:00:00 2001 From: Rajani Karuturi Date: Fri, 17 Apr 2015 18:03:13 +0530 Subject: [PATCH] Added file exists check for onetime post url also, fixed an issue where in the upload was going to error state in case of parallel call to the same post url --- .../storage/resource/HttpUploadServerHandler.java | 13 +++++++++---- .../resource/NfsSecondaryStorageResource.java | 14 ++++++++++++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java b/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java index 4a3fa86d9d8..05e5fe4d2ce 100644 --- a/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java +++ b/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java @@ -77,7 +77,7 @@ public class HttpUploadServerHandler extends SimpleChannelInboundHandler